aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-06-19 15:50:12 -0400
committerLuke Dashjr <luke-jr+git@utopios.org>2012-06-20 18:55:24 +0000
commit3023e782bdaee3448e1543b482cf5cd022c9699f (patch)
treea425930166999d7f5830c4d6002fb1d67572dec3 /src/main.cpp
parentb199f7547f357711873327347c0f368248e99032 (diff)
downloadbitcoin-3023e782bdaee3448e1543b482cf5cd022c9699f.tar.xz
print large orphan warning BEFORE deleting pvMsg
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
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;
}