diff options
Diffstat (limited to 'src/node/peerman_args.cpp')
-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 |