mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
[cleanup] remove unused rng param from LimitOrphans
This commit is contained in:
@@ -216,7 +216,7 @@ public:
|
||||
bool EraseTx(const Wtxid& wtxid) override;
|
||||
void EraseForPeer(NodeId peer) override;
|
||||
void EraseForBlock(const CBlock& block) override;
|
||||
void LimitOrphans(FastRandomContext& rng) override;
|
||||
void LimitOrphans() override;
|
||||
void AddChildrenToWorkSet(const CTransaction& tx, FastRandomContext& rng) override;
|
||||
bool HaveTxToReconsider(NodeId peer) override;
|
||||
std::vector<CTransactionRef> GetChildrenFromSamePeer(const CTransactionRef& parent, NodeId nodeid) const override;
|
||||
@@ -408,7 +408,7 @@ void TxOrphanageImpl::EraseForPeer(NodeId peer)
|
||||
* amount of announcements and space for each peer. The reserved amount is protected from eviction even if there
|
||||
* are peers spamming the orphanage.
|
||||
*/
|
||||
void TxOrphanageImpl::LimitOrphans(FastRandomContext& rng)
|
||||
void TxOrphanageImpl::LimitOrphans()
|
||||
{
|
||||
if (!NeedsTrim()) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user