v30.3-roots.1 · Commit 3: [PATCH 03/68] feat(policy): preserve Roots relay and network controls on Core 30.3
src/node/peerman_args.cpp
Before: src/node/peerman_args.cpp · After: src/node/peerman_args.cpp
File metadata
index 59dc592d66dc749b6f0478b3b4055d1c37c5173e..fc1d99274a6b507416904be398e99489e24eb567 100644
Download original patch · Release notes
Diff rows 1–11 of 11. 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/peerman_args.cpp
CHANGED
|
@@ -20,6 +20,11 @@ void ApplyArgsManOptions(const ArgsManager& argsman, PeerManager::Options& optio
|
|
| 20 |
options.max_extra_txs = uint32_t((std::clamp<int64_t>(*value, 0, std::numeric_limits<uint32_t>::max())));
|
| 21 |
}
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
if (auto value{argsman.GetBoolArg("-capturemessages")}) options.capture_messages = *value;
|
| 24 |
|
| 25 |
if (auto value{argsman.GetBoolArg("-blocksonly")}) options.ignore_incoming_txs = *value;
|
|
|
|
| 20 |
options.max_extra_txs = uint32_t((std::clamp<int64_t>(*value, 0, std::numeric_limits<uint32_t>::max())));
|
| 21 |
}
|
| 22 |
|
| 23 |
+
if (auto value{argsman.GetFixedPointArg("-blockreconstructionextratxnsize", /*decimals=*/ 4)}) {
|
| 24 |
+
// NOTE: GetFixedPointArg only allows values up to 18 digits
|
| 25 |
+
options.max_extra_txs_size = 100 * (size_t)std::clamp<int64_t>(*value, 0, std::numeric_limits<size_t>::max() / 100);
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
if (auto value{argsman.GetBoolArg("-capturemessages")}) options.capture_messages = *value;
|
| 29 |
|
| 30 |
if (auto value{argsman.GetBoolArg("-blocksonly")}) options.ignore_incoming_txs = *value;
|