aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSuhas Daftuar <sdaftuar@chaincode.com>2017-09-13 09:21:27 -0400
committerMarcoFalke <falke.marco@gmail.com>2017-10-03 22:03:09 +0200
commit8d2e51d86253881abadb5b11f93b12e3761f6232 (patch)
tree77d0d523336ab8b35c6c1d251c583707d2dfc11a /test
parent2f0b30a58a07a3e30faa82a27525025158754db2 (diff)
downloadbitcoin-8d2e51d86253881abadb5b11f93b12e3761f6232.tar.xz
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
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/p2p-segwit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/p2p-segwit.py b/test/functional/p2p-segwit.py
index 9bb72c8199..9105f0ee06 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):