From ce1c864b4d816a2511e99d757f7e62c9d1b36bcc Mon Sep 17 00:00:00 2001 From: jeffro256 Date: Mon, 17 Mar 2025 08:40:04 -0500 Subject: cryptonote_protocol: fix handling of pruned blocks during sync --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptonote_core') 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); -- cgit v1.2.3