mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Use __func__ to get function name for output printing
This commit is contained in:
parent
7e5d94df1f
commit
fa785d1211
4 changed files with 21 additions and 21 deletions
|
|
@ -3954,7 +3954,7 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
|
|||
// Create new
|
||||
CBlockIndex* pindexNew = new CBlockIndex();
|
||||
if (!pindexNew)
|
||||
throw runtime_error("LoadBlockIndex(): new CBlockIndex failed");
|
||||
throw runtime_error(std::string(__func__) + ": new CBlockIndex failed");
|
||||
mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
|
||||
pindexNew->phashBlock = &((*mi).first);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue