diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-06-19 15:50:12 -0400 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-06-20 18:55:24 +0000 |
commit | 3023e782bdaee3448e1543b482cf5cd022c9699f (patch) | |
tree | a425930166999d7f5830c4d6002fb1d67572dec3 | |
parent | b199f7547f357711873327347c0f368248e99032 (diff) | |
download | bitcoin-3023e782bdaee3448e1543b482cf5cd022c9699f.tar.xz |
print large orphan warning BEFORE deleting pvMsg
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 432ec871f5..7ce7c92e5d 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; } |