aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rpc.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp
index 3aec7efbe1..379dea2944 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -702,21 +702,6 @@ Value movecmd(const Array& params, bool fHelp)
CWalletDB walletdb;
walletdb.TxnBegin();
- // Check funds
- if (!strFrom.empty())
- {
- int64 nBalance = GetAccountBalance(walletdb, strFrom, nMinDepth);
- if (nAmount > nBalance)
- throw JSONRPCError(-6, "Account has insufficient funds");
- }
- else
- {
- // move from "" account special case
- int64 nBalance = GetAccountBalance(walletdb, strTo, nMinDepth);
- if (nAmount > GetBalance() - nBalance)
- throw JSONRPCError(-6, "Account has insufficient funds");
- }
-
int64 nNow = GetAdjustedTime();
// Debit