From 1bf4bfd036cbbacac2af13a2747c282803fb8e6a Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 12 May 2016 06:27:41 +0000 Subject: [PATCH] fee calculation fixed --- src/page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/page.h b/src/page.h index f607e27..39b12b5 100644 --- a/src/page.h +++ b/src/page.h @@ -928,6 +928,7 @@ namespace xmreg { string pid_str = REMOVE_HASH_BRAKETS(fmt::format("{:s}", txd.payment_id)); string pid8_str = REMOVE_HASH_BRAKETS(fmt::format("{:s}", txd.payment_id8)); + // initalise page tempate map with basic info about blockchain mstch::map context { {"tx_hash" , tx_hash_str}, @@ -1951,7 +1952,7 @@ namespace xmreg { // get mixin number txd.mixin_no = get_mixin_no(tx); - if (!coinbase && tx.vin.size() > 1) + if (!coinbase && tx.vin.size() > 0) { // get tx fee txd.fee = get_tx_fee(tx);