1
0
mirror of https://github.com/kvazar-network/kevacoin.git synced 2025-01-08 06:07:55 +00:00

Print error for coinbase-pays-too-much case of ConnectBlock failing

This commit is contained in:
Luke Dashjr 2012-09-08 19:52:59 +00:00
parent f2b12807d0
commit 4ade04ddbd

View File

@ -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;