aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-07-21 18:09:02 +0200
committerMacroFake <falke.marco@gmail.com>2022-08-02 15:29:16 +0200
commit66664384a6fec39ecb4d8d06db66a4f193a06e33 (patch)
tree7769cc7b287f4202edebae9c5314e8be4509d7e7 /src/kernel
parentfad0b4fab849eb5f1f0aa54ebc290f85a473ec91 (diff)
downloadbitcoin-66664384a6fec39ecb4d8d06db66a4f193a06e33.tar.xz
Remove ::g_max_datacarrier_bytes global
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/mempool_options.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kernel/mempool_options.h b/src/kernel/mempool_options.h
index 197a018ba3..dad6f14c39 100644
--- a/src/kernel/mempool_options.h
+++ b/src/kernel/mempool_options.h
@@ -8,9 +8,11 @@
#include <policy/feerate.h>
#include <policy/policy.h>
+#include <script/standard.h>
#include <chrono>
#include <cstdint>
+#include <optional>
class CBlockPolicyEstimator;
@@ -40,6 +42,14 @@ struct MemPoolOptions {
/** A fee rate smaller than this is considered zero fee (for relaying, mining and transaction creation) */
CFeeRate min_relay_feerate{DEFAULT_MIN_RELAY_TX_FEE};
CFeeRate dust_relay_feerate{DUST_RELAY_TX_FEE};
+ /**
+ * A data carrying output is an unspendable output containing data. The script
+ * type is designated as TxoutType::NULL_DATA.
+ *
+ * Maximum size of TxoutType::NULL_DATA scripts that this node considers standard.
+ * If nullopt, any size is nonstandard.
+ */
+ std::optional<unsigned> max_datacarrier_bytes{DEFAULT_ACCEPT_DATACARRIER ? std::optional{MAX_OP_RETURN_RELAY} : std::nullopt};
bool permit_bare_multisig{DEFAULT_PERMIT_BAREMULTISIG};
bool require_standard{true};
bool full_rbf{DEFAULT_MEMPOOL_FULL_RBF};