changeset 3674:5943cf9292a7 draft

Bugfix: add missing fee check
author Pieter Wuille <pieter.wuille@gmail.com>
date Mon, 22 Oct 2012 21:46:00 +0200
parents 41a54b4e95b2
children a51a27bf2538
files src/main.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1597,6 +1597,9 @@
             blockundo.vtxundo.push_back(txundo);
     }
 
+    if (vtx[0].GetValueOut() > GetBlockValue(pindex->nHeight, nFees))
+        return false;
+
     if (fJustCheck)
         return true;