1. check block for genesis block
authorScott Nadal <scottnadal@gmail.com>
Sat, 24 Mar 2012 20:03:15 +0000 (20:03 +0000)
committerScott Nadal <scottnadal@gmail.com>
Sat, 24 Mar 2012 20:03:15 +0000 (20:03 +0000)
2. print signature without space

src/main.cpp
src/main.h

index 2769450..a6cdccb 100644 (file)
@@ -1714,6 +1714,7 @@ bool LoadBlockIndex(bool fAllowNew)
         assert(block.hashMerkleRoot == uint256("0xc7311b56de266580cca65be108ae53d7100b5c3b17da8b1106044103abd7a521"));
         block.print();
         assert(block.GetHash() == hashGenesisBlock);
+        assert(block.CheckBlock());
 
         // Start new block file
         unsigned int nFile;
index 321da6f..59b88ce 100644 (file)
@@ -1009,7 +1009,7 @@ public:
             hashPrevBlock.ToString().substr(0,20).c_str(),
             hashMerkleRoot.ToString().substr(0,10).c_str(),
             nTime, nBits, nNonce,
-            HexStr(vchBlockSig.begin(), vchBlockSig.end(), true).c_str(),
+            HexStr(vchBlockSig.begin(), vchBlockSig.end()).c_str(),
             vtx.size());
         for (int i = 0; i < vtx.size(); i++)
         {