This commit is contained in:
jl777
2018-02-02 13:30:47 +02:00
parent c83c59f97e
commit 170d7b7ac9

View File

@@ -1265,7 +1265,7 @@ UniValue sendmany(const UniValue& params, bool fHelp)
EnsureWalletIsUnlocked();
// Check funds
CAmount nBalance = ValueFromAmount(pwalletMain->GetBalance());
CAmount nBalance = pwalletMain->GetBalance();
//CAmount nBalance = GetAccountBalance(strAccount, nMinDepth, ISMINE_SPENDABLE);
if (totalAmount > nBalance)
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Account has insufficient funds");