Make orphan logging more verbose, displaying mapOrphanTransactions.size()

Old log message:
	storing orphan tx df2244f6bc

New log message:
	storing orphan tx df2244f6bc (mapsz 51)

Also, trim a few trailing whitespace in main.cpp.
This commit is contained in:
Jeff Garzik 2012-05-17 20:36:55 -04:00 committed by Jeff Garzik
parent 6c513a45d5
commit 6d64a0bfed
1 changed files with 7 additions and 5 deletions

View File

@ -2704,7 +2704,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
}
else if (fMissingInputs)
{
printf("storing orphan tx %s\n", inv.hash.ToString().substr(0,10).c_str());
printf("storing orphan tx %s (mapsz %d)\n",
inv.hash.ToString().substr(0,10).c_str(),
mapOrphanTransactions.size() + 1);
AddOrphanTx(vMsg);
// DoS prevention: do not allow mapOrphanTransactions to grow unbounded