From a2013ecc39219151067578661b3dbf13b4e1fe7f Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Wed, 15 Apr 2020 02:07:19 -0400 Subject: [PATCH] Fix incorrect error message --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 20c6cffe6..cfe851f7f 100644 --- a/src/main.cpp +++ b/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());