|
|
@ -17,6 +17,7 @@ |
|
|
|
#include "txmempool.h" |
|
|
|
#include "txmempool.h" |
|
|
|
#include "ui_interface.h" |
|
|
|
#include "ui_interface.h" |
|
|
|
#include "util.h" |
|
|
|
#include "util.h" |
|
|
|
|
|
|
|
#include "utilmoneystr.h" |
|
|
|
|
|
|
|
|
|
|
|
#include <sstream> |
|
|
|
#include <sstream> |
|
|
|
|
|
|
|
|
|
|
@ -1361,7 +1362,8 @@ bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsVi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (nValueIn < tx.GetValueOut()) |
|
|
|
if (nValueIn < tx.GetValueOut()) |
|
|
|
return state.DoS(100, error("CheckInputs() : %s value in < value out", tx.GetHash().ToString()), |
|
|
|
return state.DoS(100, error("CheckInputs() : %s value in (%s) < value out (%s)", |
|
|
|
|
|
|
|
tx.GetHash().ToString(), FormatMoney(nValueIn), FormatMoney(tx.GetValueOut())), |
|
|
|
REJECT_INVALID, "bad-txns-in-belowout"); |
|
|
|
REJECT_INVALID, "bad-txns-in-belowout"); |
|
|
|
|
|
|
|
|
|
|
|
// Tally transaction fees
|
|
|
|
// Tally transaction fees
|
|
|
|