diff options
author | Antoine Riard <dev@ariard.me> | 2022-04-27 10:25:22 -0400 |
---|---|---|
committer | Antoine Riard <dev@ariard.me> | 2022-07-06 20:57:29 -0400 |
commit | 3e27e317270fdc2dd02794fea9da016387699636 (patch) | |
tree | 4ca7453d07febd54f8dff13a8dbf61fbe7b685f0 /src/kernel | |
parent | 5bc10b39abbcb77638161902ccd1225139bc7cc0 (diff) |
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.
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/mempool_options.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/mempool_options.h b/src/kernel/mempool_options.h index a14abb6628..07953b443b 100644 --- a/src/kernel/mempool_options.h +++ b/src/kernel/mempool_options.h @@ -15,6 +15,8 @@ class CBlockPolicyEstimator; static constexpr unsigned int DEFAULT_MAX_MEMPOOL_SIZE_MB{300}; /** Default for -mempoolexpiry, expiration time for mempool transactions in hours */ static constexpr unsigned int DEFAULT_MEMPOOL_EXPIRY_HOURS{336}; +/** Default for -mempoolfullrbf, if the transaction replaceability signaling is ignored */ +static constexpr bool DEFAULT_MEMPOOL_FULL_RBF{false}; namespace kernel { /** @@ -31,6 +33,7 @@ struct MemPoolOptions { int check_ratio{0}; int64_t max_size_bytes{DEFAULT_MAX_MEMPOOL_SIZE_MB * 1'000'000}; std::chrono::seconds expiry{std::chrono::hours{DEFAULT_MEMPOOL_EXPIRY_HOURS}}; + bool full_rbf{DEFAULT_MEMPOOL_FULL_RBF}; MemPoolLimits limits{}; }; } // namespace kernel |