mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 07:30:40 -04:00
cryptonote_protocol: fix handling of pruned blocks during sync
This commit is contained in:
parent
88a5d07682
commit
ce1c864b4d
2 changed files with 32 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue