mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
[net processing] Move -maxorphantx to PeerManager::Options
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user