diff options
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index d9615f9c0..021492ad2 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4339,7 +4339,7 @@ leave: { tx = std::move(extra_txs_it->second.first); txblob = std::move(extra_txs_it->second.second); - tx_weight = get_transaction_weight(tx, txblob.size()); + tx_weight = tx.pruned ? get_pruned_transaction_weight(tx) : get_transaction_weight(tx, txblob.size()); fee = get_tx_fee(tx); pruned = tx.pruned; extra_block_txs.txs_by_txid.erase(extra_txs_it); |
