diff options
author | John Newbery <john@johnnewbery.com> | 2017-08-07 15:50:01 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-08-07 15:50:01 -0400 |
commit | 055d95f842e3659c41ad55101df8dce4865cd68f (patch) | |
tree | c6f43204317a2cc2542f6d58212c89235501d91e /src/wallet | |
parent | fa646369489d5655ac187f2a9e151317829581df (diff) | |
download | bitcoin-055d95f842e3659c41ad55101df8dce4865cd68f.tar.xz |
[wallet] return correct error code from resendwallettransaction
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 27f84bfb7c..057379d8da 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2599,7 +2599,7 @@ UniValue resendwallettransactions(const JSONRPCRequest& request) LOCK2(cs_main, pwallet->cs_wallet); if (!pwallet->GetBroadcastTransactions()) { - throw JSONRPCError(RPC_INVALID_REQUEST, "Error: Wallet transaction broadcasting is disabled with -walletbroadcast"); + throw JSONRPCError(RPC_WALLET_ERROR, "Error: Wallet transaction broadcasting is disabled with -walletbroadcast"); } std::vector<uint256> txids = pwallet->ResendWalletTransactionsBefore(GetTime(), g_connman.get()); |