aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorJeffro256 <jeffro256@tutanota.com>2023-02-22 01:24:55 -0600
committerjeffro256 <jeffro256@tutanota.com>2023-06-27 20:18:21 +0200
commita668312cfa1bd0f1ae3e2e351d9d0b3cfb75fe36 (patch)
tree6f38fdb0c9d6b572168138f77c4ae998cf906862 /src/simplewallet
parentMerge pull request #8884 (diff)
downloadmonero-a668312cfa1bd0f1ae3e2e351d9d0b3cfb75fe36.tar.xz
wallet: remove CLI code for non default ring sizes
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index e618bfa6f..e41a66d24 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -6584,23 +6584,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
}
if (!process_ring_members(ptx_vector, prompt, m_wallet->print_ring_members()))
return false;
- bool default_ring_size = true;
- for (const auto &ptx: ptx_vector)
- {
- for (const auto &vin: ptx.tx.vin)
- {
- if (vin.type() == typeid(txin_to_key))
- {
- const txin_to_key& in_to_key = boost::get<txin_to_key>(vin);
- if (in_to_key.key_offsets.size() != min_ring_size)
- default_ring_size = false;
- }
- }
- }
- if (m_wallet->confirm_non_default_ring_size() && !default_ring_size)
- {
- prompt << tr("WARNING: this is a non default ring size, which may harm your privacy. Default is recommended.");
- }
+
prompt << ENDL << tr("Is this okay?");
std::string accepted = input_line(prompt.str(), true);