diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-22 21:46:00 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-10-23 00:23:39 +0200 |
commit | 9e957fb3b17e93a37db80544550a6689a3647295 (patch) | |
tree | 00553995ac525e50cd82e582cf795d13ee537b3d | |
parent | 56424040a469f775f14be0c81d7d62ebcfd8a0d7 (diff) |
Bugfix: add missing fee check
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 723b8d75ea..dd2f491aed 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; |