diff options
author | John Newbery <john@johnnewbery.com> | 2018-09-22 22:57:40 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-09-23 08:51:57 -0400 |
commit | 9d7ee187a3ceb9270af316ae3eb8f2de27d70b1f (patch) | |
tree | 2e78cc28a032d3f9ff4efbfb42beac6dc78860c8 /test/functional/p2p_compactblocks.py | |
parent | 3cf77f0b3ee0862e87c98db5363b4da83f9089e0 (diff) |
[test] Remove deprecated addwitnessaddress from p2p_compactblocks.py
Diffstat (limited to 'test/functional/p2p_compactblocks.py')
-rwxr-xr-x | test/functional/p2p_compactblocks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p_compactblocks.py b/test/functional/p2p_compactblocks.py index 600b97cd11..04353ae96f 100755 --- a/test/functional/p2p_compactblocks.py +++ b/test/functional/p2p_compactblocks.py @@ -98,7 +98,7 @@ class CompactBlocksTest(BitcoinTestFramework): 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): @@ -264,7 +264,7 @@ class CompactBlocksTest(BitcoinTestFramework): 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) |