This commit is contained in:
jl777
2018-04-10 18:22:32 +03:00
parent b1e74295fd
commit 294925c70a

View File

@@ -4534,6 +4534,8 @@ bool InitBlockIndex() {
if (!WriteBlockToDisk(block, blockPos, chainparams.MessageStart()))
return error("LoadBlockIndex(): writing genesis block to disk failed");
CBlockIndex *pindex = AddToBlockIndex(block);
if ( pindex == 0 )
return error("LoadBlockIndex(): couldnt add to block index");
if (!ReceivedBlockTransactions(block, state, pindex, blockPos))
return error("LoadBlockIndex(): genesis block not accepted");
if (!ActivateBestChain(state, &block))