mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-15 18:08:57 +00:00
Print error for coinbase-pays-too-much case of ConnectBlock failing
This commit is contained in:
parent
65cee0bbbd
commit
6d6bf32064
@ -1251,7 +1251,7 @@ bool CBlock::ConnectBlock(CTxDB& txdb, CBlockIndex* pindex)
|
||||
}
|
||||
|
||||
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));
|
||||
|
||||
// Update block index on disk without changing it in memory.
|
||||
// The memory index structure will be changed after the db commits.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user