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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/node/mempool_args.h
CHANGED
|
@@ -5,8 +5,13 @@
|
|
| 5 |
#ifndef BITCOIN_NODE_MEMPOOL_ARGS_H
|
| 6 |
#define BITCOIN_NODE_MEMPOOL_ARGS_H
|
| 7 |
|
|
|
|
| 8 |
#include <util/result.h>
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
class ArgsManager;
|
| 11 |
class CChainParams;
|
| 12 |
struct bilingual_str;
|
|
@@ -14,6 +19,13 @@ namespace kernel {
|
|
| 14 |
struct MemPoolOptions;
|
| 15 |
};
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
/**
|
| 18 |
* Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts.
|
| 19 |
* Returns an error if one was encountered.
|
|
|
|
| 5 |
#ifndef BITCOIN_NODE_MEMPOOL_ARGS_H
|
| 6 |
#define BITCOIN_NODE_MEMPOOL_ARGS_H
|
| 7 |
|
| 8 |
+
#include <common/settings.h>
|
| 9 |
#include <util/result.h>
|
| 10 |
|
| 11 |
+
#include <cstdint>
|
| 12 |
+
#include <string_view>
|
| 13 |
+
#include <utility>
|
| 14 |
+
|
| 15 |
class ArgsManager;
|
| 16 |
class CChainParams;
|
| 17 |
struct bilingual_str;
|
|
|
|
| 19 |
struct MemPoolOptions;
|
| 20 |
};
|
| 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 |
+
|
| 29 |
/**
|
| 30 |
* Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts.
|
| 31 |
* Returns an error if one was encountered.
|