mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
[net processing] Move -maxorphantx to PeerManager::Options
This commit is contained in:
parent
fa9e6d80d1
commit
567c4e0b6a
3 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue