mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-25 22:14:15 +00:00
Revert "Make this error message similar to the others"
This reverts commit dc1e5ad1917bb353aee7ef24aabf13ae3fe2fb80. The new error message was not correct, as it refers to the total balance, not an account.
This commit is contained in:
parent
198947c19f
commit
c23b6fd688
@ -1012,7 +1012,7 @@ Value sendmany(const Array& params, bool fHelp)
|
||||
if (!fCreated)
|
||||
{
|
||||
if (totalAmount + nFeeRequired > pwalletMain->GetBalance())
|
||||
throw JSONRPCError(-6, "Account has insufficient funds");
|
||||
throw JSONRPCError(-6, "Insufficient funds");
|
||||
throw JSONRPCError(-4, "Transaction creation failed");
|
||||
}
|
||||
if (!pwalletMain->CommitTransaction(wtx, keyChange))
|
||||
|
Loading…
x
Reference in New Issue
Block a user