mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
do not calculate tx fees for miner blocks
This commit is contained in:
parent
1bf4bfd036
commit
01b8630146
1 changed files with 10 additions and 2 deletions
|
@ -1952,12 +1952,20 @@ namespace xmreg {
|
|||
// get mixin number
|
||||
txd.mixin_no = get_mixin_no(tx);
|
||||
|
||||
txd.fee = 0;
|
||||
|
||||
if (!coinbase && tx.vin.size() > 0)
|
||||
{
|
||||
// check if not miner tx
|
||||
// i.e., for blocks without any user transactions
|
||||
if (tx.vin.at(0).type() != typeid(txin_gen))
|
||||
{
|
||||
// get tx fee
|
||||
txd.fee = get_tx_fee(tx);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
get_payment_id(tx, txd.payment_id, txd.payment_id8);
|
||||
|
||||
// get tx size in bytes
|
||||
|
|
Loading…
Reference in a new issue