mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
[travis] add zmq python module
This commit is contained in:
committed by
Jonas Schnelli
parent
110a1fd727
commit
a9c27cdf55
@@ -32,8 +32,6 @@ class ZMQTest (BitcoinTestFramework):
|
||||
self.zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "hashblock")
|
||||
self.zmqSubSocket.setsockopt(zmq.SUBSCRIBE, "hashtx")
|
||||
self.zmqSubSocket.connect("tcp://127.0.0.1:%i" % self.port)
|
||||
# Note: proxies are not used to connect to local nodes
|
||||
# this is because the proxy to use is based on CService.GetNetwork(), which return NET_UNROUTABLE for localhost
|
||||
return start_nodes(4, self.options.tmpdir, extra_args=[
|
||||
['-zmqpubhashtx=tcp://127.0.0.1:'+str(self.port), '-zmqpubhashblock=tcp://127.0.0.1:'+str(self.port)],
|
||||
[],
|
||||
@@ -41,6 +39,8 @@ class ZMQTest (BitcoinTestFramework):
|
||||
[]
|
||||
])
|
||||
|
||||
return nodes
|
||||
|
||||
def run_test(self):
|
||||
self.sync_all()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user