Commit 75dcbd23 authored by Pieter Wuille's avatar Pieter Wuille
Browse files

Bugfix: add missing fee check

parent 489734f8
Showing with 3 additions and 0 deletions
+3 -0
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment