wallet: enable avoid_partial_spends by default if avoid_reuse is set

This commit is contained in:
Karl-Johan Alm 2019-04-25 13:50:07 +09:00
parent 8f2e208f7c
commit 27669551da
No known key found for this signature in database
GPG key ID: 57AF762DB3353322

View file

@ -448,6 +448,8 @@ static UniValue sendtoaddress(const JSONRPCRequest& request)
}
coin_control.m_avoid_address_reuse = GetAvoidReuseFlag(pwallet, request.params[8]);
// We also enable partial spend avoidance if reuse avoidance is set.
coin_control.m_avoid_partial_spends |= coin_control.m_avoid_address_reuse;
EnsureWalletIsUnlocked(pwallet);