mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Bugfix: add missing fee check
This commit is contained in:
@@ -1597,6 +1597,9 @@ bool CBlock::ConnectBlock(CBlockIndex* pindex, CCoinsViewCache &view, bool fJust
|
||||
blockundo.vtxundo.push_back(txundo);
|
||||
}
|
||||
|
||||
if (vtx[0].GetValueOut() > GetBlockValue(pindex->nHeight, nFees))
|
||||
return false;
|
||||
|
||||
if (fJustCheck)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user