Skip to content

Commit

Permalink
Consider all (<100k memusage) txn for compact-block-extra-txn cache
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Jan 10, 2017
1 parent 7f8c8ca commit 863edb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 863edb4

Please sign in to comment.