diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-27 14:34:15 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-27 14:35:00 +0000 |
commit | 107f33985dcff17cb2bfa7bc448ab4216b0126ce (patch) | |
tree | 233a99b6cb413fce077bda8e35d3740b9ef406a3 /src/wallet/wallet2.cpp | |
parent | Merge pull request #4721 (diff) | |
download | monero-107f33985dcff17cb2bfa7bc448ab4216b0126ce.tar.xz |
wallet2: fix ring reuse breaking when using histogram
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 37b60c5d7..509c85afa 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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 |