Total Input == Total Output is valid Transaction

This commit is contained in:
perl5577 2014-11-17 00:26:40 +01:00
parent 2b93288fd7
commit d37cf66cb4

View File

@ -284,7 +284,7 @@ namespace cryptonote
get_inputs_money_amount(tx, amount_in);
uint64_t amount_out = get_outs_money_amount(tx);
if(amount_in <= amount_out)
if(amount_in < amount_out)
{
LOG_PRINT_RED_L1("tx with wrong amounts: ins " << amount_in << ", outs " << amount_out << ", rejected for tx id= " << get_transaction_hash(tx));
return false;