Skip to content

Commit

Permalink
[test] Remove deprecated addwitnessaddress from p2p_compactblocks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewbery committed Sep 23, 2018
1 parent 3cf77f0 commit 9d7ee18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/p2p_compactblocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def set_test_params(self):
self.num_nodes = 2
# This test was written assuming SegWit is activated using BIP9 at height 432 (3x confirmation window).
# TODO: Rewrite this test to support SegWit being always active.
self.extra_args = [["-vbparams=segwit:0:0"], ["-vbparams=segwit:0:999999999999", "-txindex", "-deprecatedrpc=addwitnessaddress"]]
self.extra_args = [["-vbparams=segwit:0:0"], ["-vbparams=segwit:0:999999999999", "-txindex"]]
self.utxos = []

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

0 comments on commit 9d7ee18

Please sign in to comment.