mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
wallet2: fix ring reuse breaking when using histogram
This commit is contained in:
parent
4cbb476cd1
commit
107f33985d
1 changed files with 3 additions and 0 deletions
|
@ -7166,6 +7166,9 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
|
|||
break;
|
||||
}
|
||||
}
|
||||
bool use_histogram = amount != 0 || !has_rct_distribution;
|
||||
if (!use_histogram)
|
||||
num_outs = rct_offsets[rct_offsets.size() - CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE];
|
||||
|
||||
// make sure the real outputs we asked for are really included, along
|
||||
// with the correct key and mask: this guards against an active attack
|
||||
|
|
Loading…
Reference in a new issue