cryptonote_protocol: fix handling of pruned blocks during sync

This commit is contained in:
jeffro256 2025-03-17 08:40:04 -05:00
parent 88a5d07682
commit ce1c864b4d
No known key found for this signature in database
GPG key ID: 6F79797A6E392442
2 changed files with 32 additions and 8 deletions

View file

@ -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);