Changeset View
Changeset View
Standalone View
Standalone View
test/functional/interface_zmq.py
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | def setup_nodes(self): | ||||
self.extra_args = [ | self.extra_args = [ | ||||
["-zmqpub{}={}".format(sub.topic.decode(), ADDRESS) for sub in [ | ["-zmqpub{}={}".format(sub.topic.decode(), ADDRESS) for sub in [ | ||||
self.hashblock, self.hashtx, self.rawblock, self.rawtx]], | self.hashblock, self.hashtx, self.rawblock, self.rawtx]], | ||||
[], | [], | ||||
] | ] | ||||
self.add_nodes(self.num_nodes, self.extra_args) | self.add_nodes(self.num_nodes, self.extra_args) | ||||
self.start_nodes() | self.start_nodes() | ||||
self.import_deterministic_coinbase_privkeys() | |||||
def run_test(self): | def run_test(self): | ||||
try: | try: | ||||
self._zmq_test() | self._zmq_test() | ||||
finally: | finally: | ||||
# Destroy the ZMQ context. | # Destroy the ZMQ context. | ||||
self.log.debug("Destroying ZMQ context") | self.log.debug("Destroying ZMQ context") | ||||
self.zmq_context.destroy(linger=None) | self.zmq_context.destroy(linger=None) | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |