Bugfix: add missing fee check

This commit is contained in:
Pieter Wuille 2012-10-22 21:46:00 +02:00
parent 56424040a4
commit 9e957fb3b1
1 changed files with 3 additions and 0 deletions

View File

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