mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
Bugfix: add missing fee check
This commit is contained in:
parent
56424040a4
commit
9e957fb3b1
@ -1597,6 +1597,9 @@ bool CBlock::ConnectBlock(CBlockIndex* pindex, CCoinsViewCache &view, bool fJust
|
|||||||
blockundo.vtxundo.push_back(txundo);
|
blockundo.vtxundo.push_back(txundo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (vtx[0].GetValueOut() > GetBlockValue(pindex->nHeight, nFees))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (fJustCheck)
|
if (fJustCheck)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user