diff options
author | dergoegge <n.goeggi@gmail.com> | 2023-04-20 13:33:11 +0200 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2023-07-24 18:35:30 +0200 |
commit | 567c4e0b6a3fadd2fd1be732076026bf491519b2 (patch) | |
tree | 6a661252af69d55b0a1c5a5b711933e330501abd /src/net_processing.cpp | |
parent | fa9e6d80d1c55f8b1bb2691bfd67e8c2b7189b38 (diff) |
[net processing] Move -maxorphantx to PeerManager::Options
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index a1889ae2b5..f061f981f2 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -4238,8 +4238,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type, m_txrequest.ForgetTxHash(tx.GetWitnessHash()); // DoS prevention: do not allow m_orphanage to grow unbounded (see CVE-2012-3789) - unsigned int nMaxOrphanTx = (unsigned int)std::max((int64_t)0, gArgs.GetIntArg("-maxorphantx", DEFAULT_MAX_ORPHAN_TRANSACTIONS)); - m_orphanage.LimitOrphans(nMaxOrphanTx); + m_orphanage.LimitOrphans(m_opts.max_orphan_txs); } else { LogPrint(BCLog::MEMPOOL, "not keeping orphan with rejected parents %s\n",tx.GetHash().ToString()); // We will continue to reject this tx since it has rejected |