From 244fc7acaa89c0b1e3364c91c946701289dc2a1a Mon Sep 17 00:00:00 2001 From: auruya Date: Wed, 1 Apr 2026 13:24:10 +0300 Subject: [PATCH] display amount_burnt for rollup txs --- src/wallet/api/transaction_history.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wallet/api/transaction_history.cpp b/src/wallet/api/transaction_history.cpp index 2b4db1aa9..118768f40 100644 --- a/src/wallet/api/transaction_history.cpp +++ b/src/wallet/api/transaction_history.cpp @@ -178,7 +178,8 @@ void TransactionHistoryImpl::refresh() uint64_t amount = pd.m_amount_in - change - fee; if (pd.m_tx.type == cryptonote::transaction_type::AUDIT || pd.m_tx.type == cryptonote::transaction_type::BURN || - pd.m_tx.type == cryptonote::transaction_type::STAKE) { + pd.m_tx.type == cryptonote::transaction_type::STAKE || + pd.m_tx.type == cryptonote::transaction_type::ROLLUP) { amount = pd.m_tx.amount_burnt; if (fee > amount) fee -= amount; } @@ -223,7 +224,8 @@ void TransactionHistoryImpl::refresh() uint64_t amount = pd.m_amount_in - change - fee; if (pd.m_tx.type == cryptonote::transaction_type::AUDIT || pd.m_tx.type == cryptonote::transaction_type::BURN || - pd.m_tx.type == cryptonote::transaction_type::STAKE) { + pd.m_tx.type == cryptonote::transaction_type::STAKE || + pd.m_tx.type == cryptonote::transaction_type::ROLLUP) { amount = pd.m_tx.amount_burnt; if (fee > amount) fee -= amount; }