wallet2: fix ring reuse breaking when using histogram

release-v0.5.1
moneromooo-monero 6 years ago committed by wowario
parent 51a7dd045e
commit abb4728cf7
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -7143,6 +7143,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…
Cancel
Save