Test
This commit is contained in:
@@ -1265,7 +1265,7 @@ UniValue sendmany(const UniValue& params, bool fHelp)
|
|||||||
EnsureWalletIsUnlocked();
|
EnsureWalletIsUnlocked();
|
||||||
|
|
||||||
// Check funds
|
// Check funds
|
||||||
CAmount nBalance = ValueFromAmount(pwalletMain->GetBalance());
|
CAmount nBalance = pwalletMain->GetBalance();
|
||||||
//CAmount nBalance = GetAccountBalance(strAccount, nMinDepth, ISMINE_SPENDABLE);
|
//CAmount nBalance = GetAccountBalance(strAccount, nMinDepth, ISMINE_SPENDABLE);
|
||||||
if (totalAmount > nBalance)
|
if (totalAmount > nBalance)
|
||||||
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Account has insufficient funds");
|
throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Account has insufficient funds");
|
||||||
|
|||||||
Reference in New Issue
Block a user