diff options
| author | Pieter Wuille <[email protected]> | 2012-10-22 21:46:00 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-10-23 00:23:39 +0200 |
| commit | 9e957fb3b17e93a37db80544550a6689a3647295 (patch) | |
| tree | 00553995ac525e50cd82e582cf795d13ee537b3d /src/main.cpp | |
| parent | Bugfix: off-by-one error in coinbase maturity check (diff) | |
| download | discoin-9e957fb3b17e93a37db80544550a6689a3647295.tar.xz discoin-9e957fb3b17e93a37db80544550a6689a3647295.zip | |
Bugfix: add missing fee check
Diffstat (limited to 'src/main.cpp')
| -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 723b8d75e..dd2f491ae 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; |