[Pkg-bitcoin-commits] [bitcoin] 106/126: Fix minchainwork test for 0.15 backport

Jonas Smedegaard dr at jones.dk
Mon Nov 13 20:02:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.15.1_dfsg-1
in repository bitcoin.

commit 6baa317b5fa615d463cdf0a2095533f6c10c84de
Author: Suhas Daftuar <sdaftuar at gmail.com>
Date:   Thu Nov 2 15:02:48 2017 -0400

    Fix minchainwork test for 0.15 backport
---
 test/functional/minchainwork.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/functional/minchainwork.py b/test/functional/minchainwork.py
index 35cd7ad..e136dc2 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])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/bitcoin.git



More information about the Pkg-bitcoin-commits mailing list