diff options
| author | Daniel Kraft <[email protected]> | 2014-07-07 09:34:43 +0200 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2014-07-07 09:41:33 +0200 |
| commit | e832ab7754732af7fd46ad7f16eef973e238c357 (patch) | |
| tree | b3d38ef8d312cf2404f2952091a104b3de0534de /src/rpcwallet.cpp | |
| parent | Merge pull request #4457 (diff) | |
| download | discoin-e832ab7754732af7fd46ad7f16eef973e238c357.tar.xz discoin-e832ab7754732af7fd46ad7f16eef973e238c357.zip | |
Rename SendMoneyToDestination to SendMoney.
Get rid of SendMoney and replace it by the functionality of
SendMoneyToDestination. This cleans up the code, since only
SendMoneyToDestination was actually used (SendMoney internally from this
routine).
Diffstat (limited to 'src/rpcwallet.cpp')
| -rw-r--r-- | src/rpcwallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 38e96133b..639b21f12 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -346,7 +346,7 @@ Value sendtoaddress(const Array& params, bool fHelp) EnsureWalletIsUnlocked(); - string strError = pwalletMain->SendMoneyToDestination(address.Get(), nAmount, wtx); + string strError = pwalletMain->SendMoney(address.Get(), nAmount, wtx); if (strError != "") throw JSONRPCError(RPC_WALLET_ERROR, strError); @@ -786,7 +786,7 @@ Value sendfrom(const Array& params, bool fHelp) throw JSONRPCError(RPC_WALLET_INSUFFICIENT_FUNDS, "Account has insufficient funds"); // Send - string strError = pwalletMain->SendMoneyToDestination(address.Get(), nAmount, wtx); + string strError = pwalletMain->SendMoney(address.Get(), nAmount, wtx); if (strError != "") throw JSONRPCError(RPC_WALLET_ERROR, strError); |