mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
[wallet] return correct error code from resendwallettransaction
This commit is contained in:
parent
fa64636948
commit
055d95f842
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Reference in a new issue