diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2012-09-08 19:52:59 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-11-16 19:51:25 +0000 |
commit | 6d6bf32064f22b61526c6b3bcd1ac9950a3413b6 (patch) | |
tree | b5c80f8be41093475e09ef6962d37e046a1be7c5 | |
parent | 65cee0bbbdea49c08bc84be7824ab004cc19f57e (diff) | |
download | bitcoin-6d6bf32064f22b61526c6b3bcd1ac9950a3413b6.tar.xz |
Print error for coinbase-pays-too-much case of ConnectBlock failing
-rw-r--r-- | src/main.cpp | 2 |
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. |