[net processing] Move -maxorphantx to PeerManager::Options

This commit is contained in:
dergoegge
2023-04-20 13:33:11 +02:00
parent fa9e6d80d1
commit 567c4e0b6a
3 changed files with 7 additions and 3 deletions

View File

@@ -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