wallet: sanity check ring indices only against spendable

This commit is contained in:
jeffro256
2025-10-15 17:00:21 -05:00
parent b591866fcf
commit 5905b202f0

View File

@@ -8978,7 +8978,9 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
return;
const auto unique = outs_unique(outs);
if (tx_sanity_check(unique.first, unique.second, rct_offsets.empty() ? 0 : rct_offsets.back()))
const uint64_t rct_outs_available = rct_offsets.size() >= CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE
? rct_offsets.at(rct_offsets.size() - CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE) : 0;
if (tx_sanity_check(unique.first, unique.second, rct_outs_available))
{
return;
}