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-14 19:16:56 +0000 |
commit | 4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752 (patch) | |
tree | 7d9b34d684516d10cd42bf373f326c55db65c6ce /src | |
parent | f2b12807d04e981d0a252cbda6ba80c87a809d6e (diff) |
Print error for coinbase-pays-too-much case of ConnectBlock failing
Diffstat (limited to 'src')
-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 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; |