wallet: enable avoid_partial_spends by default if avoid_reuse is set
This commit is contained in:
parent
8f2e208f7c
commit
27669551da
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue