@@ -2668,50 +2668,6 @@ static UniValue unloadwallet(const JSONRPCRequest& request)
2668
2668
return NullUniValue;
2669
2669
}
2670
2670
2671
- static UniValue resendwallettransactions (const JSONRPCRequest& request)
2672
- {
2673
- std::shared_ptr<CWallet> const wallet = GetWalletForJSONRPCRequest (request);
2674
- CWallet* const pwallet = wallet.get ();
2675
-
2676
- if (!EnsureWalletIsAvailable (pwallet, request.fHelp )) {
2677
- return NullUniValue;
2678
- }
2679
-
2680
- if (request.fHelp || request.params .size () != 0 )
2681
- throw std::runtime_error (
2682
- RPCHelpMan{" resendwallettransactions" ,
2683
- " Immediately re-broadcast unconfirmed wallet transactions to all peers.\n "
2684
- " Intended only for testing; the wallet code periodically re-broadcasts\n "
2685
- " automatically.\n " ,
2686
- {},
2687
- RPCResult{
2688
- " Returns an RPC error if -walletbroadcast is set to false.\n "
2689
- " Returns array of transaction ids that were re-broadcast.\n "
2690
- },
2691
- RPCExamples{" " },
2692
- }.ToString ()
2693
- );
2694
-
2695
- if (!pwallet->chain ().p2pEnabled ()) {
2696
- throw JSONRPCError (RPC_CLIENT_P2P_DISABLED, " Error: Peer-to-peer functionality missing or disabled" );
2697
- }
2698
-
2699
- auto locked_chain = pwallet->chain ().lock ();
2700
- LOCK (pwallet->cs_wallet );
2701
-
2702
- if (!pwallet->GetBroadcastTransactions ()) {
2703
- throw JSONRPCError (RPC_WALLET_ERROR, " Error: Wallet transaction broadcasting is disabled with -walletbroadcast" );
2704
- }
2705
-
2706
- std::vector<uint256> txids = pwallet->ResendWalletTransactionsBefore (*locked_chain, GetTime ());
2707
- UniValue result (UniValue::VARR);
2708
- for (const uint256& txid : txids)
2709
- {
2710
- result.push_back (txid.ToString ());
2711
- }
2712
- return result;
2713
- }
2714
-
2715
2671
static UniValue listunspent (const JSONRPCRequest& request)
2716
2672
{
2717
2673
std::shared_ptr<CWallet> const wallet = GetWalletForJSONRPCRequest (request);
@@ -4085,7 +4041,6 @@ UniValue importmulti(const JSONRPCRequest& request);
4085
4041
static const CRPCCommand commands[] =
4086
4042
{ // category name actor (function) argNames
4087
4043
// --------------------- ------------------------ ----------------------- ----------
4088
- { " hidden" , " resendwallettransactions" , &resendwallettransactions, {} },
4089
4044
{ " rawtransactions" , " fundrawtransaction" , &fundrawtransaction, {" hexstring" ," options" ," iswitness" } },
4090
4045
{ " wallet" , " abandontransaction" , &abandontransaction, {" txid" } },
4091
4046
{ " wallet" , " abortrescan" , &abortrescan, {} },
0 commit comments