fix checkpoints

This commit is contained in:
iamsmooth
2014-09-06 17:59:24 +00:00
committed by fluffypony
parent 07680e553f
commit 0a9f2f5236
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -100,11 +100,14 @@ bool blockchain_storage::init(const std::string& config_folder)
}
// check alt chains
#if 0
// doesn't work when a checkpoint is added and there are already alt chains. However, the rest of the blockchain code suffers from the same issue, so ignore for now
// see issue #118
BOOST_FOREACH(blocks_ext_by_hash::value_type& alt_block, m_alternative_chains)
{
CHECK_AND_ASSERT_MES(m_checkpoints.is_alternative_block_allowed(m_blocks.size()-1,alt_block.second.height),false,"stored alternative block not allowed, blockchain.bin invalid");
}
#endif
}
else
{