PPCoin: Print full block hash to debug log with -printblocktree
authorSunny King <sunnyking9999@gmail.com>
Sun, 9 Sep 2012 20:08:58 +0000 (21:08 +0100)
committerSunny King <sunnyking9999@gmail.com>
Sun, 9 Sep 2012 20:08:58 +0000 (21:08 +0100)
src/main.cpp

index e4e6acf..04886ed 100644 (file)
@@ -2388,11 +2388,11 @@ void PrintBlockTree()
         // print item
         CBlock block;
         block.ReadFromDisk(pindex);
-        printf("%d (%u,%u) %s  %08lx  %s  mint %s  tx %d",
+        printf("%d (%u,%u) %s  %08lx  %s  mint %7s  tx %d",
             pindex->nHeight,
             pindex->nFile,
             pindex->nBlockPos,
-            block.GetHash().ToString().substr(0,20).c_str(),
+            block.GetHash().ToString().c_str(),
             block.nBits,
             DateTimeStrFormat(block.GetBlockTime()).c_str(),
             FormatMoney(pindex->nMint).c_str(),