Skip to content

Commit c283b3c

Browse files
committed
print large orphan warning BEFORE deleting pvMsg
1 parent 451c395 commit c283b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ bool AddOrphanTx(const CDataStream& vMsg)
180180
// at most 500 megabytes of orphans:
181181
if (pvMsg->size() > 5000)
182182
{
183-
delete pvMsg;
184183
printf("ignoring large orphan tx (size: %u, hash: %s)\n", pvMsg->size(), hash.ToString().substr(0,10).c_str());
184+
delete pvMsg;
185185
return false;
186186
}
187187

0 commit comments

Comments
 (0)