test: Fix intermittent feature_taproot issue

Github-Pull: #20535
Rebased-From: fa275e1539
This commit is contained in:
MarcoFalke 2020-11-30 20:58:25 +01:00 committed by fanquake
parent 681f728a35
commit 55e941f5df
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -1441,6 +1441,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()