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."); }