From 6d6bf32064f22b61526c6b3bcd1ac9950a3413b6 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sat, 8 Sep 2012 19:52:59 +0000 Subject: Print error for coinbase-pays-too-much case of ConnectBlock failing --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index e740d8e319..988bee6500 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1251,7 +1251,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex) } if (vtx[0].GetValueOut() > GetBlockValue(pindex->nHeight, nFees)) - return false; + return error("ConnectBlock() : coinbase pays too much (actual=%lld vs limit=%lld)", (long long)vtx[0].GetValueOut(), (long long)GetBlockValue(pindex->nHeight, nFees)); // Update block index on disk without changing it in memory. // The memory index structure will be changed after the db commits. -- cgit v1.2.3