mirror of
https://github.com/wownero/wownero.git
synced 2026-11-30 13:13:56 +01: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;
|
return;
|
||||||
|
|
||||||
const auto unique = outs_unique(outs);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user