diff options
| author | John Newbery <[email protected]> | 2017-08-07 15:50:01 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2017-08-07 15:50:01 -0400 |
| commit | 055d95f842e3659c41ad55101df8dce4865cd68f (patch) | |
| tree | c6f43204317a2cc2542f6d58212c89235501d91e | |
| parent | Merge #10995: Fix resendwallettransactions assert failure if -walletbroadcast=0 (diff) | |
| download | discoin-055d95f842e3659c41ad55101df8dce4865cd68f.tar.xz discoin-055d95f842e3659c41ad55101df8dce4865cd68f.zip | |
[wallet] return correct error code from resendwallettransaction
| -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 27f84bfb7..057379d8d 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()); |