Fix sendmany

This commit is contained in:
jl777
2018-02-02 13:19:15 +02:00
parent b92d9db11b
commit c83c59f97e

View File

@@ -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");