Browse Source

Fix incorrect error message

pull/100/head
Duke Leto 4 years ago
parent
commit
a2013ecc39
  1. 2
      src/main.cpp

2
src/main.cpp

@ -6121,7 +6121,7 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
// Create new
CBlockIndex* pindexNew = new CBlockIndex();
if (!pindexNew)
throw runtime_error("LoadBlockIndex(): new CBlockIndex failed");
throw runtime_error("InsertBlockIndex(): new CBlockIndex failed");
mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
pindexNew->phashBlock = &((*mi).first);
//fprintf(stderr,"inserted to block index %s\n",hash.ToString().c_str());

Loading…
Cancel
Save