aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorjeffro256 <jeffro256@tutanota.com>2025-03-17 08:40:04 -0500
committerjeffro256 <jeffro256@tutanota.com>2025-03-19 17:37:53 -0500
commitce1c864b4d816a2511e99d757f7e62c9d1b36bcc (patch)
tree58231853f8f2d539c3d1b2ae9d8c0eaaa36ebff5 /src/cryptonote_core
parent88a5d076822f39cdd897d3f962346f30e4901244 (diff)
downloadmonzero-core-ce1c864b4d816a2511e99d757f7e62c9d1b36bcc.tar.gz
monzero-core-ce1c864b4d816a2511e99d757f7e62c9d1b36bcc.tar.xz
monzero-core-ce1c864b4d816a2511e99d757f7e62c9d1b36bcc.zip
cryptonote_protocol: fix handling of pruned blocks during sync
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
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);