aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2020-12-07 20:34:50 +0100
committerWladimir J. van der Laan <laanwj@protonmail.com>2020-12-07 20:37:18 +0100
commitd38feb6134e2aaeeb9991cc25f7e94fa8451795b (patch)
tree43661888254574df1b837ef2dcf797b80a488185 /test
parent5c4911e7e7523fb7643da209254bbc2ef7898d2e (diff)
parentfa275e1539941b49fe206ff0bf110e3362bec6bb (diff)
downloadbitcoin-d38feb6134e2aaeeb9991cc25f7e94fa8451795b.tar.xz
Merge #20535: test: Fix intermittent feature_taproot issue
fa275e1539941b49fe206ff0bf110e3362bec6bb test: Fix intermittent feature_taproot issue (MarcoFalke) Pull request description: The nodes might disconnect (e.g. due to "Timeout downloading block" https://cirrus-ci.com/task/5313800947630080?command=ci#L1763) and the test fails to continue. Fix that by reconnecting the nodes. ACKs for top commit: laanwj: code review ACK fa275e1539941b49fe206ff0bf110e3362bec6bb Tree-SHA512: 2871183c8058d8292c9c4ef56ea3d19d5616ca712ebdaabb6609f8c9cd2e16c9ac2ce26aa1e94b346872b7b6fec56b59af151af83de3a5aa08bed01bfcc7187a
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/feature_taproot.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/feature_taproot.py b/test/functional/feature_taproot.py
index 116eb7e3d7..6ee2b72c11 100755
--- a/test/functional/feature_taproot.py
+++ b/test/functional/feature_taproot.py
@@ -1444,6 +1444,10 @@ class TaprootTest(BitcoinTestFramework):
self.nodes[1].generate(101)
self.test_spenders(self.nodes[1], spenders_taproot_active(), input_counts=[1, 2, 2, 2, 2, 3])
+ # Re-connect nodes in case they have been disconnected
+ self.disconnect_nodes(0, 1)
+ self.connect_nodes(0, 1)
+
# Transfer value of the largest 500 coins to pre-taproot node.
addr = self.nodes[0].getnewaddress()