Browse Source

Fix `-printblocktree` output

PrintBlockTree output was broken starting from e010af70.
Everything appears on one line.

PrintWallet() added the newline after a block, but this functionality
was removed and no newline was added.

Seemingly, no one noticed. Add a newline after the block information
to fix this.
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
af4c2ac8ce
  1. 2
      src/main.cpp

2
src/main.cpp

@ -3021,7 +3021,7 @@ void PrintBlockTree()
// print item // print item
CBlock block; CBlock block;
ReadBlockFromDisk(block, pindex); ReadBlockFromDisk(block, pindex);
LogPrintf("%d (blk%05u.dat:0x%x) %s tx %"PRIszu"", LogPrintf("%d (blk%05u.dat:0x%x) %s tx %"PRIszu"\n",
pindex->nHeight, pindex->nHeight,
pindex->GetBlockPos().nFile, pindex->GetBlockPos().nPos, pindex->GetBlockPos().nFile, pindex->GetBlockPos().nPos,
DateTimeStrFormat("%Y-%m-%d %H:%M:%S", block.GetBlockTime()), DateTimeStrFormat("%Y-%m-%d %H:%M:%S", block.GetBlockTime()),

Loading…
Cancel
Save