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. The two line-number columns refer to before and after.
src/txmempool.h
CHANGED
|
@@ -436,6 +436,11 @@ public:
|
|
|
436
436
|
|
|
437
437
|
Options m_opts;
|
|
438
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:
|
|
439
444
|
/** Create a new CTxMemPool.
|
|
440
445
|
* Sanity checks will be off by default for performance, because otherwise
|
|
441
446
|
* accepting transactions becomes O(N^2) where N is the number of transactions
|
|
@@ -481,6 +486,7 @@ public:
|
|
|
481
486
|
void UpdateDependentPriorities(const CTransaction &tx, unsigned int nBlockHeight, bool addToChain);
|
|
482
487
|
|
|
483
488
|
void UpdateDynamicDustFeerate();
|
|
489
|
+
CFeeRate GetDustRelayFee() const;
|
|
484
490
|
|
|
485
491
|
/** Affect CreateNewBlock prioritisation of transactions */
|
|
486
492
|
void PrioritiseTransaction(const Txid& hash, double dPriorityDelta, const CAmount& nFeeDelta);
|