Skip to content

Commit 6baa317

Browse files
committed
Fix minchainwork test for 0.15 backport
1 parent 55b7abf commit 6baa317

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/minchainwork.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ def run_test(self):
8181
# we'd expect node1 to have disconnected node0 for serving an
8282
# insufficient work chain, in which case we'd need to reconnect them to
8383
# continue the test.
84+
# NOTE: before commit 44407100ff9b478d6131a1c38ee993b50b1830df, regtest
85+
# connections were not manual, so the reconnect is necessary.
86+
if (len(self.nodes[0].getpeerinfo()) == 0):
87+
connect_nodes(self.nodes[1], 0)
8488

8589
self.sync_all()
8690
self.log.info("Blockcounts: %s", [n.getblockcount() for n in self.nodes])

0 commit comments

Comments
 (0)