mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-05 11:24:19 +00:00
print large orphan warning BEFORE deleting pvMsg
This commit is contained in:
parent
451c3957fe
commit
c283b3c569
@ -180,8 +180,8 @@ bool AddOrphanTx(const CDataStream& vMsg)
|
|||||||
// at most 500 megabytes of orphans:
|
// at most 500 megabytes of orphans:
|
||||||
if (pvMsg->size() > 5000)
|
if (pvMsg->size() > 5000)
|
||||||
{
|
{
|
||||||
delete pvMsg;
|
|
||||||
printf("ignoring large orphan tx (size: %u, hash: %s)\n", pvMsg->size(), hash.ToString().substr(0,10).c_str());
|
printf("ignoring large orphan tx (size: %u, hash: %s)\n", pvMsg->size(), hash.ToString().substr(0,10).c_str());
|
||||||
|
delete pvMsg;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user