|
|
@ -664,10 +664,10 @@ bool AddOrphanTx(const CTransactionRef& tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRE
|
|
|
|
// large transaction with a missing parent then we assume
|
|
|
|
// large transaction with a missing parent then we assume
|
|
|
|
// it will rebroadcast it later, after the parent transaction(s)
|
|
|
|
// it will rebroadcast it later, after the parent transaction(s)
|
|
|
|
// have been mined or received.
|
|
|
|
// have been mined or received.
|
|
|
|
// 100 orphans, each of which is at most 99,999 bytes big is
|
|
|
|
// 100 orphans, each of which is at most 100,000 bytes big is
|
|
|
|
// at most 10 megabytes of orphans and somewhat more byprev index (in the worst case):
|
|
|
|
// at most 10 megabytes of orphans and somewhat more byprev index (in the worst case):
|
|
|
|
unsigned int sz = GetTransactionWeight(*tx);
|
|
|
|
unsigned int sz = GetTransactionWeight(*tx);
|
|
|
|
if (sz >= MAX_STANDARD_TX_WEIGHT)
|
|
|
|
if (sz > MAX_STANDARD_TX_WEIGHT)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LogPrint(BCLog::MEMPOOL, "ignoring large orphan tx (size: %u, hash: %s)\n", sz, hash.ToString());
|
|
|
|
LogPrint(BCLog::MEMPOOL, "ignoring large orphan tx (size: %u, hash: %s)\n", sz, hash.ToString());
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|