Skip to content
Bitcoin Roots

v29.4-roots.3 · Commit 3: [PATCH 03/30] policy: restore conservative relay and network controls

src/node/mempool_args.h

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

File metadata
index 630fee6421bda23e08eb8ddfdc9e04c8459a6e4b..19cc8c7a84745f56ae28d0047fb5c5dd5632659b 100644

Download original patch · Release notes

Diff rows 1–22 of 22. 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,9 @@ 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
+ void ApplyPermitEphemeralOption(const common::SettingsValue& value, kernel::MemPoolOptions& mempool_opts);
24
+
17
25
  /**
18
26
  * Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts.
19
27
  * Returns an error if one was encountered.