From: Gavin Andresen Date: Tue, 19 Jun 2012 19:50:12 +0000 (-0400) Subject: print large orphan warning BEFORE deleting pvMsg X-Git-Tag: v0.4.0-unstable~129^2~2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=b90b8159db929232b7142baa903ddc0226dd7e10 print large orphan warning BEFORE deleting pvMsg --- diff --git a/src/main.cpp b/src/main.cpp index 27feeca..7d2fbd5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -179,8 +179,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; }