fee calculation fixed

This commit is contained in:
moneroexamples 2016-05-12 06:27:41 +00:00
parent c5a9ae5792
commit 1bf4bfd036
1 changed files with 2 additions and 1 deletions

View File

@ -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);