Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 7: [PATCH 07/68] build: adapt Roots maintenance and assurance to Core 30.3

src/kernel/mempool_options.h

Before: src/kernel/mempool_options.h · After: src/kernel/mempool_options.h

File metadata
index a23ec8a0ed588873513b63b62a3409514dfaa3af..5dd062d234827e22c3c57f6bec48bc57e4c717fc 100644

Download original patch · Release notes

Diff rows 1–61 of 61. 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/kernel/mempool_options.h CHANGED
@@ -11,7 +11,6 @@
11
11
 
12
12
  #include <chrono>
13
13
  #include <cstdint>
14
- #include <optional>
15
14
 
16
15
  class CBlockPolicyEstimator;
17
16
  class CScheduler;
@@ -40,9 +39,6 @@ static constexpr bool DEFAULT_PERSIST_V1_DAT{false};
40
39
  static constexpr bool DEFAULT_ACCEPT_NON_STD_DATACARRIER{false};
41
40
  /** Default for -acceptnonstdtxn */
42
41
  static constexpr bool DEFAULT_ACCEPT_NON_STD_TXN{false};
43
- /** Default for -acceptunknownwitness */
44
- static constexpr bool DEFAULT_ACCEPTUNKNOWNWITNESS{true};
45
-
46
42
  namespace kernel {
47
43
  /**
48
44
  * Options struct containing options for constructing a CTxMemPool. Default
@@ -51,7 +47,7 @@ namespace kernel {
51
47
  *
52
48
  * Most of the time, this struct should be referenced as CTxMemPool::Options.
53
49
  */
54
- struct MemPoolOptions {
50
+ struct MemPoolOptions : StandardnessOptions {
55
51
  /* Used to estimate appropriate transaction fees. */
56
52
  CBlockPolicyEstimator* estimator{nullptr};
57
53
  CScheduler* scheduler{nullptr};
@@ -64,37 +60,17 @@ struct MemPoolOptions {
64
60
  CFeeRate incremental_relay_feerate{CORE_INCREMENTAL_RELAY_FEE};
65
61
  /** A fee rate smaller than this is considered zero fee (for relaying, mining and transaction creation) */
66
62
  CFeeRate min_relay_feerate{DEFAULT_MIN_RELAY_TX_FEE};
67
- CFeeRate dust_relay_feerate{DUST_RELAY_TX_FEE};
68
63
  CFeeRate dust_relay_feerate_floor{DUST_RELAY_TX_FEE};
69
64
  /** Negative for a target number of blocks, positive for target kB into current mempool. */
70
65
  int32_t dust_relay_target{0};
71
66
  /** Multiplier for dustdynamic assignments, in thousandths. */
72
67
  int dust_relay_multiplier{DEFAULT_DUST_RELAY_MULTIPLIER};
73
- unsigned int maxtxlegacysigops{MAX_TX_LEGACY_SIGOPS};
74
- /**
75
- * A data carrying output is an unspendable output containing data. The script
76
- * type is designated as TxoutType::NULL_DATA.
77
- *
78
- * Maximum size of TxoutType::NULL_DATA scripts that this node considers standard.
79
- * If nullopt, any size is nonstandard.
80
- */
81
- std::optional<unsigned> max_datacarrier_bytes{DEFAULT_ACCEPT_DATACARRIER ? std::optional{MAX_OP_RETURN_RELAY} : std::nullopt};
82
68
  bool datacarrier_fullcount{DEFAULT_DATACARRIER_FULLCOUNT};
83
- bool permitbaredatacarrier{DEFAULT_PERMITBAREDATACARRIER};
84
- bool permitbareanchor{DEFAULT_PERMITBAREANCHOR};
85
- bool permit_bare_pubkey{DEFAULT_PERMIT_BAREPUBKEY};
86
- bool permit_bare_multisig{DEFAULT_PERMIT_BAREMULTISIG};
87
- bool reject_parasites{DEFAULT_REJECT_PARASITES};
88
- bool reject_tokens{DEFAULT_REJECT_TOKENS};
89
69
  bool subdustfeepenalty{DEFAULT_SUBDUSTFEEPENALTY};
90
70
  bool accept_non_std_datacarrier{DEFAULT_ACCEPT_NON_STD_DATACARRIER};
91
71
  bool require_standard{true};
92
- bool acceptunknownwitness{DEFAULT_ACCEPTUNKNOWNWITNESS};
93
72
  RBFPolicy rbf_policy{DEFAULT_MEMPOOL_RBF_POLICY};
94
73
  TRUCPolicy truc_policy{DEFAULT_MEMPOOL_TRUC_POLICY};
95
- bool permitephemeral_anchor{DEFAULT_PERMITEPHEMERAL_ANCHOR};
96
- bool permitephemeral_send{DEFAULT_PERMITEPHEMERAL_SEND};
97
- bool permitephemeral_dust{DEFAULT_PERMITEPHEMERAL_DUST};
98
74
  bool persist_v1_dat{DEFAULT_PERSIST_V1_DAT};
99
75
  MemPoolLimits limits{};
100
76