Skip to content

Commit

Permalink
Fixes for bitcoin#11050 backport
Browse files Browse the repository at this point in the history
  • Loading branch information
codablock committed Dec 31, 2019
1 parent 909de93 commit 0f46840
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,8 @@ UniValue getbalance(const JSONRPCRequest& request)

const UniValue& account_value = request.params[0];
const UniValue& minconf = request.params[1];
const UniValue& addlocked = request.params[2];
const UniValue& include_watchonly = request.params[3];
const UniValue& addlocked = request.params[3];

if (account_value.isNull()) {
if (!minconf.isNull()) {
Expand Down Expand Up @@ -1070,10 +1070,12 @@ UniValue sendmany(const JSONRPCRequest& request)
if (!request.params[5].isNull())
subtractFeeFrom = request.params[5].get_array();

// request.params[6] ("use_is") is deprecated and not used here

CCoinControl coin_control;

if (!request.params[7].isNull()) {
coin_control.UsePrivateSend(request.params.get_bool());
coin_control.UsePrivateSend(request.params[7].get_bool());
}

if (!request.params[8].isNull()) {
Expand Down

0 comments on commit 0f46840

Please sign in to comment.