aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_compactblocks.py
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2021-06-08 22:24:47 +0100
committerRoss Nicoll <[email protected]>2021-06-12 16:58:46 +0100
commit261d38e0feda61afd6882f166db213a0ac8672b5 (patch)
tree041de40626a3caa28554e3d3219167456b54700f /test/functional/p2p_compactblocks.py
parentMerge pull request #2259 from rnicoll/1.21-node-context (diff)
downloaddiscoin-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-xtest/functional/p2p_compactblocks.py5
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):