Skip to content
Bitcoin Roots

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

src/node/peerman_args.cpp

Before: src/node/peerman_args.cpp · After: src/node/peerman_args.cpp

File metadata
index b0ae26636513726aa05a108a3b95a2d60483e9bd..af0f22c4f39926bb4670175a5c929691e8adf365 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. The two line-number columns refer to before and after.

src/node/peerman_args.cpp CHANGED
@@ -20,6 +20,11 @@ void ApplyArgsManOptions(const ArgsManager& argsman, PeerManager::Options& optio
20
20
  options.max_extra_txs = uint32_t((std::clamp<int64_t>(*value, 0, std::numeric_limits<uint32_t>::max())));
21
21
  }
22
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
+
23
28
  if (auto value{argsman.GetBoolArg("-capturemessages")}) options.capture_messages = *value;
24
29
 
25
30
  if (auto value{argsman.GetBoolArg("-blocksonly")}) options.ignore_incoming_txs = *value;