diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-11-15 18:18:55 -0800 |
---|---|---|
committer | Jeff Garzik <jgarzik@exmulti.com> | 2012-11-15 18:18:55 -0800 |
commit | a0bf93b80958eb77f95f3f3a42aca31b7ffe73c7 (patch) | |
tree | 344634903e42eaf2ffdd9d8613705298bc27f08f | |
parent | bb76267cc409c6f0c2378e62172072baaebc4d78 (diff) | |
parent | 4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752 (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.cpp | 2 |
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; |