Skip to content

Commit 82f2fa0

Browse files
committed
[test] Remove deprecated addwitnessaddress from wallet_bumpfee.py
1 parent 9d7ee18 commit 82f2fa0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/functional/wallet_bumpfee.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def set_test_params(self):
2929
self.num_nodes = 2
3030
self.setup_clean_chain = True
3131
self.extra_args = [[
32-
"-deprecatedrpc=addwitnessaddress",
3332
"-walletrbf={}".format(i),
3433
"-mintxfee=0.00002",
3534
] for i in range(self.num_nodes)]
@@ -104,8 +103,7 @@ def test_segwit_bumpfee_succeeds(rbf_node, dest_address):
104103
# which spends it, and make sure bumpfee can be called on it.
105104

106105
segwit_in = next(u for u in rbf_node.listunspent() if u["amount"] == Decimal("0.001"))
107-
segwit_out = rbf_node.getaddressinfo(rbf_node.getnewaddress())
108-
rbf_node.addwitnessaddress(segwit_out["address"])
106+
segwit_out = rbf_node.getaddressinfo(rbf_node.getnewaddress(address_type='p2sh-segwit'))
109107
segwitid = send_to_witness(
110108
use_p2wsh=False,
111109
node=rbf_node,

0 commit comments

Comments
 (0)