aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@gmail.com>2017-11-02 15:02:48 -0400
committerSuhas Daftuar <sdaftuar@gmail.com>2017-11-02 15:02:48 -0400
commit6baa317b5fa615d463cdf0a2095533f6c10c84de (patch)
treeaa7da4541ff7c7a274982c9fcf45f18f6494add5
parent55b7abfa8a7dd1400f4399f734a1b2b6b439d52a (diff)
downloadbitcoin-6baa317b5fa615d463cdf0a2095533f6c10c84de.tar.xz
Fix minchainwork test for 0.15 backport
-rwxr-xr-xtest/functional/minchainwork.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/minchainwork.py b/test/functional/minchainwork.py
index 35cd7ad141..e136dc2b7c 100755
--- a/test/functional/minchainwork.py
+++ b/test/functional/minchainwork.py
@@ -81,6 +81,10 @@ class MinimumChainWorkTest(BitcoinTestFramework):
# we'd expect node1 to have disconnected node0 for serving an
# insufficient work chain, in which case we'd need to reconnect them to
# continue the test.
+ # NOTE: before commit 44407100ff9b478d6131a1c38ee993b50b1830df, regtest
+ # connections were not manual, so the reconnect is necessary.
+ if (len(self.nodes[0].getpeerinfo()) == 0):
+ connect_nodes(self.nodes[1], 0)
self.sync_all()
self.log.info("Blockcounts: %s", [n.getblockcount() for n in self.nodes])