Bypass assert in regrets
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user