Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 51: [PATCH 51/68] mempool: synchronize dynamic dust fee publication

src/txmempool.h

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

File metadata
index 40ae4fcc5218dca5bd377879546012af4d2d0e52..0f6016714f5ca79b469252c8167ef399e11cc3cd 100644

Download original patch · Release notes

Diff rows 1–18 of 18. 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.h CHANGED
@@ -436,6 +436,11 @@ public:
436
 
437
  Options m_opts;
438
 
 
 
 
 
 
439
  /** Create a new CTxMemPool.
440
  * Sanity checks will be off by default for performance, because otherwise
441
  * accepting transactions becomes O(N^2) where N is the number of transactions
@@ -481,6 +486,7 @@ public:
481
  void UpdateDependentPriorities(const CTransaction &tx, unsigned int nBlockHeight, bool addToChain);
482
 
483
  void UpdateDynamicDustFeerate();
 
484
 
485
  /** Affect CreateNewBlock prioritisation of transactions */
486
  void PrioritiseTransaction(const Txid& hash, double dPriorityDelta, const CAmount& nFeeDelta);
 
436
 
437
  Options m_opts;
438
 
439
+ private:
440
+ //! Current dynamic rate; configured options are not runtime policy state.
441
+ CFeeRate m_dust_relay_feerate GUARDED_BY(cs);
442
+
443
+ public:
444
  /** Create a new CTxMemPool.
445
  * Sanity checks will be off by default for performance, because otherwise
446
  * accepting transactions becomes O(N^2) where N is the number of transactions
 
486
  void UpdateDependentPriorities(const CTransaction &tx, unsigned int nBlockHeight, bool addToChain);
487
 
488
  void UpdateDynamicDustFeerate();
489
+ CFeeRate GetDustRelayFee() const;
490
 
491
  /** Affect CreateNewBlock prioritisation of transactions */
492
  void PrioritiseTransaction(const Txid& hash, double dPriorityDelta, const CAmount& nFeeDelta);