Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 5: [PATCH 05/17] feat(net): preserve Roots peer controls and health view on v31

src/node/peerman_args.cpp

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

File metadata
index 9745d69d5ae379313c2a82d4d7c1ed7fa4479618..131dc5463069a83720be7d2bd1ccd554a4b8058d 100644

Download original patch · Release notes

Diff rows 1–21 of 21. 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
@@ -6,6 +6,7 @@
6
6
 
7
7
  #include <common/args.h>
8
8
  #include <net_processing.h>
9
+ #include <util/strencodings.h>
9
10
 
10
11
  #include <algorithm>
11
12
  #include <limits>
@@ -20,6 +21,14 @@ void ApplyArgsManOptions(const ArgsManager& argsman, PeerManager::Options& optio
20
21
  options.max_extra_txs = uint32_t((std::clamp<int64_t>(*value, 0, std::numeric_limits<uint32_t>::max())));
21
22
  }
22
23
 
24
+ if (auto value{argsman.GetArg("-blockreconstructionextratxnsize")}) {
25
+ int64_t units;
26
+ if (ParseFixedPoint(*value, /*decimals=*/4, &units)) {
27
+ options.max_extra_txs_size = 100 * static_cast<size_t>(std::clamp<int64_t>(units, 0, std::numeric_limits<size_t>::max() / 100));
28
+ }
29
+ }
30
+ if (auto value{argsman.GetBoolArg("-feefilter")}) options.send_feefilter = *value;
31
+
23
32
  if (auto value{argsman.GetBoolArg("-capturemessages")}) options.capture_messages = *value;
24
33
 
25
34
  if (auto value{argsman.GetBoolArg("-blocksonly")}) options.ignore_incoming_txs = *value;