aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-15 15:01:59 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-11-15 15:07:10 +0000
commit93c33985039c4b23dc86622ac9becdbf8b0957ee (patch)
tree83bd43c08dbce145a48356b9c04ac36c9c2c95ef
parentMerge pull request #2818 (diff)
downloadmonero-93c33985039c4b23dc86622ac9becdbf8b0957ee.tar.xz
simplewallet: translate ring size 0 to mixin 0 (default values)
Avoids turning it to a huge number
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 37db00bc1..4c6503854 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -632,7 +632,7 @@ bool simple_wallet::set_default_ring_size(const std::vector<std::string> &args/*
const auto pwd_container = get_and_verify_password();
if (pwd_container)
{
- m_wallet->default_mixin(ring_size - 1);
+ m_wallet->default_mixin(ring_size > 0 ? ring_size - 1 : 0);
m_wallet->rewrite(m_wallet_file, pwd_container->password());
}
return true;