aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-09-08 19:52:59 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-11-16 19:51:25 +0000
commit6d6bf32064f22b61526c6b3bcd1ac9950a3413b6 (patch)
treeb5c80f8be41093475e09ef6962d37e046a1be7c5
parent65cee0bbbdea49c08bc84be7824ab004cc19f57e (diff)
downloadbitcoin-6d6bf32064f22b61526c6b3bcd1ac9950a3413b6.tar.xz
Print error for coinbase-pays-too-much case of ConnectBlock failing
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
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.