Bypass assert in regrets

This commit is contained in:
jl777
2018-05-30 03:08:43 -11:00
parent e2c2eec41a
commit d916630e3a

View File

@@ -5150,8 +5150,8 @@ void static CheckBlockIndex()
if ( it->second != 0 )
forward.insert(std::make_pair(it->second->pprev, it->second));
}
assert(forward.size() == mapBlockIndex.size());
if ( Params().NetworkIDString() != "regtest" )
assert(forward.size() == mapBlockIndex.size());
std::pair<std::multimap<CBlockIndex*,CBlockIndex*>::iterator,std::multimap<CBlockIndex*,CBlockIndex*>::iterator> rangeGenesis = forward.equal_range(NULL);
CBlockIndex *pindex = rangeGenesis.first->second;