v29.4-roots.2 · Commit 3: [PATCH 03/21] 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. 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,9 @@ 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 |
+
void ApplyPermitEphemeralOption(const common::SettingsValue& value, kernel::MemPoolOptions& mempool_opts);
|
| 24 |
+
|
| 25 |
/**
|
| 26 |
* Overlay the options set in \p argsman on top of corresponding members in \p mempool_opts.
|
| 27 |
* Returns an error if one was encountered.
|