mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 07:52:25 +00:00
simplewallet: translate ring size 0 to mixin 0 (default values)
Avoids turning it to a huge number
This commit is contained in:
parent
dc6a8014bd
commit
93c3398503
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue