mirror of
https://github.com/monero-project/monero.git
synced 2025-12-05 20:40:22 -08:00
wallet: sanity check ring indices only against spendable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user