From 8a32d7f73bc4920ec9fe57197105c8f37e0643b2 Mon Sep 17 00:00:00 2001 From: auruya Date: Tue, 21 Oct 2025 17:23:16 +0300 Subject: [PATCH] fix check_tx_key for multi-destination txs with additional derivations --- src/wallet/wallet2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 18f7381c2..ba01e8cf5 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -13044,8 +13044,9 @@ void wallet2::check_tx_key_helper(const cryptonote::transaction &tx, const crypt { received = 0; + const bool use_additional_derivations = !additional_derivations.empty() && address.m_is_carrot; const auto enote_scan_infos = wallet::view_incoming_scan_transaction_as_sender(tx, - {&derivation, 1}, + use_additional_derivations ? epee::span{} : epee::span{&derivation, 1}, epee::to_span(additional_derivations), address);