Test
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user