Browse Source

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.
miguelfreitas
Jeff Garzik 13 years ago committed by Jeff Garzik
parent
commit
6d64a0bfed
  1. 4
      src/main.cpp

4
src/main.cpp

@ -2704,7 +2704,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) @@ -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

Loading…
Cancel
Save