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

This commit is contained in:
dergoegge
2023-04-20 13:49:00 +02:00
parent 567c4e0b6a
commit bd59bda26b
3 changed files with 8 additions and 4 deletions

View File

@@ -12,6 +12,10 @@ void ApplyArgsManOptions(const ArgsManager& argsman, PeerManager::Options& optio
if (auto value{argsman.GetIntArg("-maxorphantx")}) {
options.max_orphan_txs = uint32_t(std::max(int64_t{0}, *value));
}
if (auto value{argsman.GetIntArg("-blockreconstructionextratxn")}) {
options.max_extra_txs = size_t(std::max(int64_t{0}, *value));
}
}
} // namespace node