|
|
@ -1741,10 +1741,12 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, |
|
|
|
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
|
|
|
|
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
|
|
|
|
assert(recentRejects); |
|
|
|
assert(recentRejects); |
|
|
|
recentRejects->insert(tx.GetHash()); |
|
|
|
recentRejects->insert(tx.GetHash()); |
|
|
|
if (RecursiveDynamicUsage(*ptx) < 100000) |
|
|
|
if (RecursiveDynamicUsage(*ptx) < 100000) { |
|
|
|
AddToCompactExtraTransactions(ptx); |
|
|
|
AddToCompactExtraTransactions(ptx); |
|
|
|
} else if (tx.HasWitness() && RecursiveDynamicUsage(*ptx) < 100000) |
|
|
|
} |
|
|
|
|
|
|
|
} else if (tx.HasWitness() && RecursiveDynamicUsage(*ptx) < 100000) { |
|
|
|
AddToCompactExtraTransactions(ptx); |
|
|
|
AddToCompactExtraTransactions(ptx); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (pfrom->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY)) { |
|
|
|
if (pfrom->fWhitelisted && GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY)) { |
|
|
|
// Always relay transactions received from whitelisted peers, even
|
|
|
|
// Always relay transactions received from whitelisted peers, even
|
|
|
|