Skip to content

Commit 9d7ee18

Browse files
committed
[test] Remove deprecated addwitnessaddress from p2p_compactblocks.py
1 parent 3cf77f0 commit 9d7ee18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/p2p_compactblocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def set_test_params(self):
9898
self.num_nodes = 2
9999
# This test was written assuming SegWit is activated using BIP9 at height 432 (3x confirmation window).
100100
# TODO: Rewrite this test to support SegWit being always active.
101-
self.extra_args = [["-vbparams=segwit:0:0"], ["-vbparams=segwit:0:999999999999", "-txindex", "-deprecatedrpc=addwitnessaddress"]]
101+
self.extra_args = [["-vbparams=segwit:0:0"], ["-vbparams=segwit:0:999999999999", "-txindex"]]
102102
self.utxos = []
103103

104104
def skip_test_if_missing_module(self):
@@ -264,7 +264,7 @@ def test_compactblock_construction(self, node, test_node, version, use_witness_a
264264
if use_witness_address:
265265
# Want at least one segwit spend, so move all funds to
266266
# a witness address.
267-
address = node.addwitnessaddress(address)
267+
address = node.getnewaddress(address_type='bech32')
268268
value_to_send = node.getbalance()
269269
node.sendtoaddress(address, satoshi_round(value_to_send - Decimal(0.1)))
270270
node.generate(1)

0 commit comments

Comments
 (0)