PPCoin: Empty signature for genesis block
authorScott Nadal <scottnadal@gmail.com>
Sat, 24 Mar 2012 18:43:13 +0000 (18:43 +0000)
committerScott Nadal <scottnadal@gmail.com>
Sat, 24 Mar 2012 18:43:13 +0000 (18:43 +0000)
src/main.h

index d8fd222..321da6f 100644 (file)
@@ -1048,6 +1048,9 @@ public:
 
     bool CheckBlockSignature() const
     {
+        if (GetHash() == hashGenesisBlock)
+            return vchBlockSig.empty();
+
         std::vector<std::pair<opcodetype, valtype> > vSolution;
 
         if (!Solver(vtx[0].vout[0].scriptPubKey, vSolution))