From 6c6aa3512fa92776e44fcb0051eec22c06671c97 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Thu, 30 Jul 2015 12:00:17 -0700 Subject: [PATCH] fixed sendtoaddressix --- src/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 5118504d89..844936e804 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -342,7 +342,7 @@ void SendMoney(const CTxDestination &address, CAmount nValue, CWalletTx& wtxNew, LogPrintf("SendMoney() : %s\n", strError); throw JSONRPCError(RPC_WALLET_ERROR, strError); } - if (!pwalletMain->CommitTransaction(wtxNew, reservekey)) + if (!pwalletMain->CommitTransaction(wtxNew, reservekey, (!fUseIX ? "tx" : "ix"))) throw JSONRPCError(RPC_WALLET_ERROR, "Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here."); }