diff options
| author | Luke Dashjr <[email protected]> | 2012-09-08 19:52:59 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-11-14 19:16:56 +0000 |
| commit | 4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752 (patch) | |
| tree | 7d9b34d684516d10cd42bf373f326c55db65c6ce /src/main.cpp | |
| parent | Merge pull request #1479 from Diapolo/wallet_add_GetImmatureCredit (diff) | |
| download | discoin-4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752.tar.xz discoin-4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752.zip | |
Print error for coinbase-pays-too-much case of ConnectBlock failing
Diffstat (limited to 'src/main.cpp')
| -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 f0bf4755b..411770bb3 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; |