Dont calculate fee for conaibase txs

This commit is contained in:
moneroexamples 2016-05-06 01:00:22 +00:00
parent ebc199e040
commit 189809831a
2 changed files with 3 additions and 3 deletions

View File

@ -1324,7 +1324,7 @@ namespace xmreg {
// get mixin number
txd.mixin_no = get_mixin_no(tx);
if (!coinbase)
if (!coinbase && tx.vin.size() > 1)
{
// get tx fee
txd.fee = get_tx_fee(tx);