|
|
|
@ -44,12 +44,6 @@ class ZMQTest (BitcoinTestFramework):
|
|
|
|
|
self.skip_if_no_wallet()
|
|
|
|
|
|
|
|
|
|
def setup_nodes(self):
|
|
|
|
|
# Import keys
|
|
|
|
|
self.add_nodes(self.num_nodes)
|
|
|
|
|
self.start_nodes()
|
|
|
|
|
super().import_deterministic_coinbase_privkeys()
|
|
|
|
|
self.stop_nodes()
|
|
|
|
|
|
|
|
|
|
import zmq
|
|
|
|
|
|
|
|
|
|
# Initialize ZMQ context and socket.
|
|
|
|
@ -69,12 +63,13 @@ class ZMQTest (BitcoinTestFramework):
|
|
|
|
|
self.rawblock = ZMQSubscriber(socket, b"rawblock")
|
|
|
|
|
self.rawtx = ZMQSubscriber(socket, b"rawtx")
|
|
|
|
|
|
|
|
|
|
self.nodes[0].extra_args = ["-zmqpub%s=%s" % (sub.topic.decode(), address) for sub in [self.hashblock, self.hashtx, self.rawblock, self.rawtx]]
|
|
|
|
|
self.extra_args = [
|
|
|
|
|
["-zmqpub%s=%s" % (sub.topic.decode(), address) for sub in [self.hashblock, self.hashtx, self.rawblock, self.rawtx]],
|
|
|
|
|
[],
|
|
|
|
|
]
|
|
|
|
|
self.add_nodes(self.num_nodes, self.extra_args)
|
|
|
|
|
self.start_nodes()
|
|
|
|
|
|
|
|
|
|
def import_deterministic_coinbase_privkeys(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def run_test(self):
|
|
|
|
|
try:
|
|
|
|
|
self._zmq_test()
|
|
|
|
|