mirror of
https://github.com/monero-project/monero.git
synced 2025-12-10 17:11:27 +09:00
Merge pull request #10172
5905b20 wallet: sanity check ring indices only against spendable (jeffro256)
This commit is contained in:
commit
0237f04617
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user