diff --git a/src/txdb.cpp b/src/txdb.cpp --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -280,7 +280,7 @@ CDiskBlockIndex diskindex; if (!pcursor->GetValue(diskindex)) { - return error("LoadBlockIndex() : failed to read value"); + return error("%s : failed to read value", __func__); } // Construct block index object @@ -300,7 +300,7 @@ if (!CheckProofOfWork(pindexNew->GetBlockHash(), pindexNew->nBits, config)) { - return error("LoadBlockIndex(): CheckProofOfWork failed: %s", + return error("%s: CheckProofOfWork failed: %s", __func__, pindexNew->ToString()); }