diff options
author | dergoegge <n.goeggi@gmail.com> | 2023-04-20 13:33:11 +0200 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2023-07-24 18:35:30 +0200 |
commit | 567c4e0b6a3fadd2fd1be732076026bf491519b2 (patch) | |
tree | 6a661252af69d55b0a1c5a5b711933e330501abd /src/node | |
parent | fa9e6d80d1c55f8b1bb2691bfd67e8c2b7189b38 (diff) |
[net processing] Move -maxorphantx to PeerManager::Options
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/peerman_args.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/node/peerman_args.cpp b/src/node/peerman_args.cpp index b1242d0fdf..8a1da693f4 100644 --- a/src/node/peerman_args.cpp +++ b/src/node/peerman_args.cpp @@ -7,7 +7,11 @@ namespace node { void ApplyArgsManOptions(const ArgsManager& argsman, PeerManager::Options& options) { - if(auto value{argsman.GetBoolArg("-txreconciliation")}) options.reconcile_txs = *value; + if (auto value{argsman.GetBoolArg("-txreconciliation")}) options.reconcile_txs = *value; + + if (auto value{argsman.GetIntArg("-maxorphantx")}) { + options.max_orphan_txs = uint32_t(std::max(int64_t{0}, *value)); + } } } // namespace node |