aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-07-27 10:03:49 +0100
committerglozow <gloriajzhao@gmail.com>2021-08-24 15:47:21 +0100
commitb001b9f6de7a039a468cf0f9645f3f0a430fa889 (patch)
tree4b06827230389feaaced0fc6ad7c7794261cb396 /src/policy
parent4fc15d15667d9d9c4fb5515ce73c05b4596298ec (diff)
downloadbitcoin-b001b9f6de7a039a468cf0f9645f3f0a430fa889.tar.xz
MOVEONLY: BIP125 max conflicts limit to policy/rbf.h
A circular dependency is added because policy now depends on txmempool and txmempool depends on validation. It is natural for [mempool] policy to rely on mempool; the problem is caused by txmempool depending on validation. #22677 will resolve this.
Diffstat (limited to 'src/policy')
-rw-r--r--src/policy/rbf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/policy/rbf.h b/src/policy/rbf.h
index e078070c1c..d61390361b 100644
--- a/src/policy/rbf.h
+++ b/src/policy/rbf.h
@@ -7,6 +7,10 @@
#include <txmempool.h>
+/** Maximum number of transactions that can be replaced by BIP125 RBF (Rule #5). This includes all
+ * mempool conflicts and their descendants. */
+static constexpr uint32_t MAX_BIP125_REPLACEMENT_CANDIDATES{100};
+
/** The rbf state of unconfirmed transactions */
enum class RBFTransactionState {
/** Unconfirmed tx that does not signal rbf and is not in the mempool */