Browse Source

print large orphan warning BEFORE deleting pvMsg

miguelfreitas
Gavin Andresen 13 years ago
parent
commit
c283b3c569
  1. 2
      src/main.cpp

2
src/main.cpp

@ -180,8 +180,8 @@ bool AddOrphanTx(const CDataStream& vMsg) @@ -180,8 +180,8 @@ bool AddOrphanTx(const CDataStream& vMsg)
// at most 500 megabytes of orphans:
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());
delete pvMsg;
return false;
}

Loading…
Cancel
Save