Merge pull request #2822

93c33985 simplewallet: translate ring size 0 to mixin 0 (default values) (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-11-25 19:52:52 +02:00
commit a7211b5a07
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -634,7 +634,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;