aboutsummaryrefslogtreecommitdiff
path: root/test/functional/getblocktemplate_longpoll.py
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-08-24 11:11:56 -0400
committerMarcoFalke <falke.marco@gmail.com>2017-10-03 18:44:16 +0200
commit82bf6fc6d48a232cc0ceb54b136d86914f49013c (patch)
treed9709ea3cb26287e192aed77e65ca17cfb9c9a39 /test/functional/getblocktemplate_longpoll.py
parent801d2ae9247be5870344c8b4ed5c372ab8930408 (diff)
downloadbitcoin-82bf6fc6d48a232cc0ceb54b136d86914f49013c.tar.xz
[tests] Functional tests must explicitly set num_nodes
Github-Pull: #11121 Rebased-From: 7148b74dc39110f53c665b94fa9d994c6ad6dc1c
Diffstat (limited to 'test/functional/getblocktemplate_longpoll.py')
-rwxr-xr-xtest/functional/getblocktemplate_longpoll.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/getblocktemplate_longpoll.py b/test/functional/getblocktemplate_longpoll.py
index 85d2560244..89768bd2fb 100755
--- a/test/functional/getblocktemplate_longpoll.py
+++ b/test/functional/getblocktemplate_longpoll.py
@@ -23,6 +23,9 @@ class LongpollThread(threading.Thread):
self.node.getblocktemplate({'longpollid':self.longpollid})
class GetBlockTemplateLPTest(BitcoinTestFramework):
+ def set_test_params(self):
+ self.num_nodes = 2
+
def run_test(self):
self.log.info("Warning: this test will take about 70 seconds in the best case. Be patient.")
self.nodes[0].generate(10)