Skip to content

Commit

Permalink
check for genisis block on reindex
Browse files Browse the repository at this point in the history
  • Loading branch information
blunt committed Apr 23, 2016
1 parent 1d491af commit 2315528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Expand Up @@ -2267,7 +2267,7 @@ bool CBlock::AcceptBlock(CValidationState &state, CDiskBlockPos *dbp)
}

// check that the block satisfies synchronized checkpoint
// Gaurd agains null pointer (pindexPrev) on genisis block
// guard against null pointer (pindexPrev) on genisis block
// was causing -reindex to crash startcoind
if (hash != hashGenesisBlock) {
if (IsSyncCheckpointEnforced() // checkpoint enforce mode
Expand Down

0 comments on commit 2315528

Please sign in to comment.