Blockfill - Take TX fees into account properly

This commit is contained in:
Alexis Enston 2017-01-16 12:18:43 +00:00
parent 4ecab0d80c
commit 5f7a8741b9

View File

@ -645,7 +645,7 @@ namespace cryptonote
sorted_it++; sorted_it++;
continue; continue;
} }
uint64_t coinbase = block_reward + fee; uint64_t coinbase = block_reward + fee + tx_it->second.fee;
if (coinbase < template_accept_threshold(best_coinbase)) if (coinbase < template_accept_threshold(best_coinbase))
{ {
LOG_PRINT_L2(" would decrease coinbase to " << print_money(coinbase)); LOG_PRINT_L2(" would decrease coinbase to " << print_money(coinbase));