Skip to content

Commit bdefc97

Browse files
committed
[tests] Remove deprecated addwitnessaddress call from feature_nulldummy
addwitnessaddress is deprecated. Replace the call to addwitnessaddress with a call to getnewaddress(address_type='p2sh-segwit')
1 parent 67d7d67 commit bdefc97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/feature_nulldummy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ def set_test_params(self):
4141
self.setup_clean_chain = True
4242
# This script tests NULLDUMMY activation, which is part of the 'segwit' deployment, so we go through
4343
# normal segwit activation here (and don't use the default always-on behaviour).
44-
self.extra_args = [['-whitelist=127.0.0.1', '-vbparams=segwit:0:999999999999', '-addresstype=legacy', "-deprecatedrpc=addwitnessaddress"]]
44+
self.extra_args = [['-whitelist=127.0.0.1', '-vbparams=segwit:0:999999999999', '-addresstype=legacy']]
4545

4646
def skip_test_if_missing_module(self):
4747
self.skip_if_no_wallet()
4848

4949
def run_test(self):
5050
self.address = self.nodes[0].getnewaddress()
5151
self.ms_address = self.nodes[0].addmultisigaddress(1, [self.address])['address']
52-
self.wit_address = self.nodes[0].addwitnessaddress(self.address)
52+
self.wit_address = self.nodes[0].getnewaddress(address_type='p2sh-segwit')
5353
self.wit_ms_address = self.nodes[0].addmultisigaddress(1, [self.address], '', 'p2sh-segwit')['address']
5454

5555
self.coinbase_blocks = self.nodes[0].generate(2) # Block 2

0 commit comments

Comments
 (0)