Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 54: [PATCH 54/68] mempool: snapshot dynamic dust for standardness checks

src/txmempool.cpp

Before: src/txmempool.cpp · After: src/txmempool.cpp

File metadata
index 376db0fe16c02a1703f71edb2280f048246a8b5c..bef2854c9fbd166ec2ced39f41a08ebeb11ddca0 100644

Download original patch · Release notes

Diff rows 1–14 of 14. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/txmempool.cpp CHANGED
@@ -796,6 +796,14 @@ CFeeRate CTxMemPool::GetDustRelayFee() const
796
  return m_dust_relay_feerate;
797
  }
798
 
 
 
 
 
 
 
 
 
799
  #ifndef BUILDING_FOR_LIBBITCOINKERNEL
800
  void CTxMemPool::UpdateDynamicDustFeerate()
801
  {
 
796
  return m_dust_relay_feerate;
797
  }
798
 
799
+ StandardnessOptions CTxMemPool::GetStandardnessOptions() const
800
+ {
801
+ LOCK(cs);
802
+ StandardnessOptions options{m_opts};
803
+ options.dust_relay_feerate = m_dust_relay_feerate;
804
+ return options;
805
+ }
806
+
807
  #ifndef BUILDING_FOR_LIBBITCOINKERNEL
808
  void CTxMemPool::UpdateDynamicDustFeerate()
809
  {