Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 2: [PATCH 02/17] feat(policy): preserve Roots parsing and local transaction checks

src/node/mempool_args.h

Before: src/node/mempool_args.h · After: src/node/mempool_args.h

File metadata
index a6a52c8b950fec3ee2cac8bfe0dfdae5f194a990..a50a8c4b1add046cff1271ac9dc74a3761b731bd 100644

Download original patch · Release notes

Diff rows 1–26 of 26. 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/node/mempool_args.h CHANGED
@@ -5,8 +5,13 @@
5
5
  #ifndef BITCOIN_NODE_MEMPOOL_ARGS_H
6
6
  #define BITCOIN_NODE_MEMPOOL_ARGS_H
7
7
 
8
+ #include <common/settings.h>
8
9
  #include <util/result.h>
9
10
 
11
+ #include <cstdint>
12
+ #include <string_view>
13
+ #include <utility>
14
+
10
15
  class ArgsManager;
11
16
  class CChainParams;
12
17
  struct bilingual_str;
@@ -14,6 +19,13 @@ namespace kernel {
14
19
  struct MemPoolOptions;
15
20
  };
16
21
 
22
+ [[nodiscard]] util::Result<std::pair<int32_t, int>> ParseDustDynamicOpt(std::string_view optstr, unsigned int max_fee_estimate_blocks);
23
+ /** Parse vbytes per carrier byte, rounding exact hundredths upward to integral weight. */
24
+ [[nodiscard]] util::Result<unsigned int> ParseDataCarrierCost(std::string_view value);
25
+ /** Validate effective Roots policy values without changing inherited Core option parsing. */
26
+ [[nodiscard]] util::Result<void> ValidateRootsPolicyOptions(const ArgsManager& argsman);
27
+ void ApplyPermitEphemeralOption(const common::SettingsValue& value, kernel::MemPoolOptions& mempool_opts);
28
+
17
29
  /**
18
30
  * Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts.
19
31
  * Returns an error if one was encountered.