From: Scott Nadal Date: Sat, 24 Mar 2012 20:03:15 +0000 (+0000) Subject: 1. check block for genesis block X-Git-Tag: v0.4.0-unstable~199^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=af92cda2aca21df6972551d54ea41726285cb4e2 1. check block for genesis block 2. print signature without space --- diff --git a/src/main.cpp b/src/main.cpp index 2769450..a6cdccb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; diff --git a/src/main.h b/src/main.h index 321da6f..59b88ce 100644 --- a/src/main.h +++ b/src/main.h @@ -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++) {