aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-11-15 18:18:55 -0800
committerJeff Garzik <jgarzik@exmulti.com>2012-11-15 18:18:55 -0800
commita0bf93b80958eb77f95f3f3a42aca31b7ffe73c7 (patch)
tree344634903e42eaf2ffdd9d8613705298bc27f08f
parentbb76267cc409c6f0c2378e62172072baaebc4d78 (diff)
parent4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752 (diff)
Merge pull request #2012 from luke-jr/invblk_errs
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 56012a131a..e6f0d9ef51 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;