fee calculation fixed

master
moneroexamples 9 years ago
parent c5a9ae5792
commit 1bf4bfd036

@ -928,6 +928,7 @@ namespace xmreg {
string pid_str = REMOVE_HASH_BRAKETS(fmt::format("{:s}", txd.payment_id)); string pid_str = REMOVE_HASH_BRAKETS(fmt::format("{:s}", txd.payment_id));
string pid8_str = REMOVE_HASH_BRAKETS(fmt::format("{:s}", txd.payment_id8)); string pid8_str = REMOVE_HASH_BRAKETS(fmt::format("{:s}", txd.payment_id8));
// initalise page tempate map with basic info about blockchain // initalise page tempate map with basic info about blockchain
mstch::map context { mstch::map context {
{"tx_hash" , tx_hash_str}, {"tx_hash" , tx_hash_str},
@ -1951,7 +1952,7 @@ namespace xmreg {
// get mixin number // get mixin number
txd.mixin_no = get_mixin_no(tx); txd.mixin_no = get_mixin_no(tx);
if (!coinbase && tx.vin.size() > 1) if (!coinbase && tx.vin.size() > 0)
{ {
// get tx fee // get tx fee
txd.fee = get_tx_fee(tx); txd.fee = get_tx_fee(tx);

Loading…
Cancel
Save