mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 22:24:05 +01:00
Merge #8179: Evict orphans which are included or precluded by accepted blocks.
54326a6Increase maximum orphan size to 100,000 bytes. (Gregory Maxwell)8c99d1bTreat orphans as implicit inv for parents, discard when parents rejected. (Gregory Maxwell)11cc143Adds an expiration time for orphan tx. (Gregory Maxwell)db0ffe8This eliminates the primary leak that causes the orphan map to always grow to its maximum size. (Gregory Maxwell)1b0bcc5Track orphan by prev COutPoint rather than prev hash (Pieter Wuille)
This commit is contained in:
@@ -162,7 +162,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans)
|
||||
tx.vout.resize(1);
|
||||
tx.vout[0].nValue = 1*CENT;
|
||||
tx.vout[0].scriptPubKey = GetScriptForDestination(key.GetPubKey().GetID());
|
||||
tx.vin.resize(500);
|
||||
tx.vin.resize(2777);
|
||||
for (unsigned int j = 0; j < tx.vin.size(); j++)
|
||||
{
|
||||
tx.vin[j].prevout.n = j;
|
||||
|
||||
Reference in New Issue
Block a user