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-14 19:16:56 +0000
commit4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752 (patch)
tree7d9b34d684516d10cd42bf373f326c55db65c6ce
parentf2b12807d04e981d0a252cbda6ba80c87a809d6e (diff)
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 f0bf4755b7..411770bb36 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1610,7 +1610,7 @@ bool CBlock::ConnectBlock(CBlockIndex* pindex, CCoinsViewCache &view, bool fJust
}
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));
if (fJustCheck)
return true;