Fix incorrect error message
This commit is contained in:
@@ -6121,7 +6121,7 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
|
|||||||
// Create new
|
// Create new
|
||||||
CBlockIndex* pindexNew = new CBlockIndex();
|
CBlockIndex* pindexNew = new CBlockIndex();
|
||||||
if (!pindexNew)
|
if (!pindexNew)
|
||||||
throw runtime_error("LoadBlockIndex(): new CBlockIndex failed");
|
throw runtime_error("InsertBlockIndex(): new CBlockIndex failed");
|
||||||
mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
|
mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
|
||||||
pindexNew->phashBlock = &((*mi).first);
|
pindexNew->phashBlock = &((*mi).first);
|
||||||
//fprintf(stderr,"inserted to block index %s\n",hash.ToString().c_str());
|
//fprintf(stderr,"inserted to block index %s\n",hash.ToString().c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user