Bypass assert in regrets
This commit is contained in:
@@ -5150,8 +5150,8 @@ void static CheckBlockIndex()
|
|||||||
if ( it->second != 0 )
|
if ( it->second != 0 )
|
||||||
forward.insert(std::make_pair(it->second->pprev, it->second));
|
forward.insert(std::make_pair(it->second->pprev, it->second));
|
||||||
}
|
}
|
||||||
|
if ( Params().NetworkIDString() != "regtest" )
|
||||||
assert(forward.size() == mapBlockIndex.size());
|
assert(forward.size() == mapBlockIndex.size());
|
||||||
|
|
||||||
std::pair<std::multimap<CBlockIndex*,CBlockIndex*>::iterator,std::multimap<CBlockIndex*,CBlockIndex*>::iterator> rangeGenesis = forward.equal_range(NULL);
|
std::pair<std::multimap<CBlockIndex*,CBlockIndex*>::iterator,std::multimap<CBlockIndex*,CBlockIndex*>::iterator> rangeGenesis = forward.equal_range(NULL);
|
||||||
CBlockIndex *pindex = rangeGenesis.first->second;
|
CBlockIndex *pindex = rangeGenesis.first->second;
|
||||||
|
|||||||
Reference in New Issue
Block a user