mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
Consider all (<100k memusage) txn for compact-block-extra-txn cache
This commit is contained in:
parent
7f8c8cab1e
commit
863edb45b9
@ -1741,7 +1741,10 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
||||
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
|
||||
assert(recentRejects);
|
||||
recentRejects->insert(tx.GetHash());
|
||||
}
|
||||
if (RecursiveDynamicUsage(*ptx) < 100000)
|
||||
AddToCompactExtraTransactions(ptx);
|
||||
} else if (tx.HasWitness() && RecursiveDynamicUsage(*ptx) < 100000)
|
||||
AddToCompactExtraTransactions(ptx);
|
||||
|
||||
if (pfrom->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY)) {
|
||||
// Always relay transactions received from whitelisted peers, even
|
||||
|
Loading…
Reference in New Issue
Block a user