Skip to content

Commit

Permalink
Fix sendmany
Browse files Browse the repository at this point in the history
  • Loading branch information
jl777 committed Feb 2, 2018
1 parent b92d9db commit c83c59f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,8 @@ UniValue sendmany(const UniValue& params, bool fHelp)
EnsureWalletIsUnlocked();

// Check funds
CAmount nBalance = GetAccountBalance(strAccount, nMinDepth, ISMINE_SPENDABLE);
CAmount nBalance = ValueFromAmount(pwalletMain->GetBalance());
//CAmount nBalance = GetAccountBalance(strAccount, nMinDepth, ISMINE_SPENDABLE);
if (totalAmount > nBalance)
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Account has insufficient funds");

Expand Down

0 comments on commit c83c59f

Please sign in to comment.