[Pkg-bitcoin-commits] [bitcoin] 47/126: qa: Fix bug introduced in p2p-segwit.py

Jonas Smedegaard dr at jones.dk
Mon Nov 13 20:01:54 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 8d2e51d86253881abadb5b11f93b12e3761f6232
Author: Suhas Daftuar <sdaftuar at chaincode.com>
Date:   Wed Sep 13 09:21:27 2017 -0400

    qa: Fix bug introduced in p2p-segwit.py
    
    Changing __init__() -> set_test_params() in the tests should not have
    applied to NodeConnCB-derived objects.
    
    Github-Pull: #11319
    Rebased-From: f97ab35fa9687fd5c110ad6cca5be5b4a5c2142d
---
 test/functional/p2p-segwit.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/functional/p2p-segwit.py b/test/functional/p2p-segwit.py
index 9bb72c8..9105f0e 100755
--- a/test/functional/p2p-segwit.py
+++ b/test/functional/p2p-segwit.py
@@ -33,8 +33,8 @@ def get_virtual_size(witness_block):
     return vsize
 
 class TestNode(NodeConnCB):
-    def set_test_params(self):
-        self.num_nodes = 3
+    def __init__(self):
+        super().__init__()
         self.getdataset = set()
 
     def on_getdata(self, conn, message):

-- 
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