From 4ade04ddbd97e0e7a5796b06ac7e2d057e3ee752 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sat, 8 Sep 2012 19:52:59 +0000 Subject: Print error for coinbase-pays-too-much case of ConnectBlock failing --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3