Introduce mempoolfullrbf node setting.

This new node policy setting enables to accept replaced-by-fee
transaction without inspection of the replaceability signaling
as described in BIP125 "explicit signaling".

If turns on, the node mempool accepts transaction replacement
as described in `policy/mempool-replacements.md`.

The default setting value is `false`, implying opt-in RBF
is enforced.
This commit is contained in:
Antoine Riard
2022-04-27 10:25:22 -04:00
parent 5bc10b39ab
commit 3e27e31727
7 changed files with 43 additions and 1 deletions

View File

@@ -458,6 +458,7 @@ CTxMemPool::CTxMemPool(const Options& opts)
minerPolicyEstimator{opts.estimator},
m_max_size_bytes{opts.max_size_bytes},
m_expiry{opts.expiry},
m_full_rbf{opts.full_rbf},
m_limits{opts.limits}
{
_clear(); //lock free clear