mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-03 22:03:01 +01:00
Fix minchainwork test for 0.15 backport
This commit is contained in:
@@ -81,6 +81,10 @@ class MinimumChainWorkTest(BitcoinTestFramework):
|
|||||||
# we'd expect node1 to have disconnected node0 for serving an
|
# we'd expect node1 to have disconnected node0 for serving an
|
||||||
# insufficient work chain, in which case we'd need to reconnect them to
|
# insufficient work chain, in which case we'd need to reconnect them to
|
||||||
# continue the test.
|
# 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.sync_all()
|
||||||
self.log.info("Blockcounts: %s", [n.getblockcount() for n in self.nodes])
|
self.log.info("Blockcounts: %s", [n.getblockcount() for n in self.nodes])
|
||||||
|
|||||||
Reference in New Issue
Block a user