aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2012-09-08 19:52:59 +0000
committerLuke Dashjr <[email protected]>2012-11-16 19:51:25 +0000
commit6d6bf32064f22b61526c6b3bcd1ac9950a3413b6 (patch)
treeb5c80f8be41093475e09ef6962d37e046a1be7c5 /src
parentdon't use memset() in privacy/security relevant code parts (diff)
downloaddiscoin-6d6bf32064f22b61526c6b3bcd1ac9950a3413b6.tar.xz
discoin-6d6bf32064f22b61526c6b3bcd1ac9950a3413b6.zip
Print error for coinbase-pays-too-much case of ConnectBlock failing
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e740d8e31..988bee650 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.