This commit is contained in:
jl777
2018-04-25 00:40:07 +03:00
parent 6fa7fd0c16
commit 4cbd837c0b

View File

@@ -3982,7 +3982,7 @@ CBlockIndex *komodo_ensure(CBlock *pblock,uint256 hash)
pindex = new CBlockIndex(); pindex = new CBlockIndex();
if (!pindex) if (!pindex)
throw runtime_error("komodo_ensure: new CBlockIndex failed"); throw runtime_error("komodo_ensure: new CBlockIndex failed");
mi = mapBlockIndex.insert(make_pair(hash, pindexN)).first; mi = mapBlockIndex.insert(make_pair(hash, pindex)).first;
pindex->phashBlock = &((*mi).first); pindex->phashBlock = &((*mi).first);
} }
BlockMap::iterator miSelf = mapBlockIndex.find(hash); BlockMap::iterator miSelf = mapBlockIndex.find(hash);