mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fee calculation fixed
This commit is contained in:
parent
c5a9ae5792
commit
1bf4bfd036
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue