diff options
| author | Ross Nicoll <[email protected]> | 2021-06-08 22:24:47 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2021-06-12 16:58:46 +0100 |
| commit | 261d38e0feda61afd6882f166db213a0ac8672b5 (patch) | |
| tree | 041de40626a3caa28554e3d3219167456b54700f /test/functional/p2p_compactblocks.py | |
| parent | Merge pull request #2259 from rnicoll/1.21-node-context (diff) | |
| download | discoin-261d38e0feda61afd6882f166db213a0ac8672b5.tar.xz discoin-261d38e0feda61afd6882f166db213a0ac8672b5.zip | |
Generate legacy addresses by default
Generate legacy addresses instead of SegWit by default.
Diffstat (limited to 'test/functional/p2p_compactblocks.py')
| -rwxr-xr-x | test/functional/p2p_compactblocks.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/p2p_compactblocks.py b/test/functional/p2p_compactblocks.py index 5afde218f..ebff82f4d 100755 --- a/test/functional/p2p_compactblocks.py +++ b/test/functional/p2p_compactblocks.py @@ -246,7 +246,10 @@ class CompactBlocksTest(BitcoinTestFramework): # Generate a bunch of transactions. node.generate(241) num_transactions = 25 - address = node.getnewaddress() + if use_witness_address: + address = node.getnewaddress(address_type="bech32") + else: + address = node.getnewaddress() segwit_tx_generated = False for _ in range(num_transactions): |