aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authortobtoht <tob@featherwallet.org>2025-03-24 02:56:05 +0000
committertobtoht <tob@featherwallet.org>2025-03-24 02:56:05 +0000
commitf373684b41c3ed2857d92c6827135e83be83f645 (patch)
treec8f5d8f52e93da9139e67b21a44a2de4689aef47 /src/cryptonote_core
parenta510409cd3c1c95848d6ab592fc91cd49c63ceae (diff)
parentce1c864b4d816a2511e99d757f7e62c9d1b36bcc (diff)
downloadmonzero-core-f373684b41c3ed2857d92c6827135e83be83f645.tar.gz
monzero-core-f373684b41c3ed2857d92c6827135e83be83f645.tar.xz
monzero-core-f373684b41c3ed2857d92c6827135e83be83f645.zip
Merge pull request #9853
ce1c864b4 cryptonote_protocol: fix handling of pruned blocks during sync (jeffro256)
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);