mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Merge pull request #3028 from PastaPastaPasta/backport-12588
Backport a couple of ZMQ fixes
This commit is contained in:
parent
5af6ce91d6
commit
781b165796
4
contrib/zmq/zmq_sub.py
Executable file → Normal file
4
contrib/zmq/zmq_sub.py
Executable file → Normal file
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
Dash should be started with the command line arguments:
|
Dash should be started with the command line arguments:
|
||||||
dashd-testnet -daemon \
|
dashd-testnet -daemon \
|
||||||
-zmqpubhashblock=tcp://127.0.0.1:28332 \
|
|
||||||
-zmqpubrawtx=tcp://127.0.0.1:28332 \
|
-zmqpubrawtx=tcp://127.0.0.1:28332 \
|
||||||
|
-zmqpubrawblock=tcp://127.0.0.1:28332 \
|
||||||
-zmqpubhashtx=tcp://127.0.0.1:28332 \
|
-zmqpubhashtx=tcp://127.0.0.1:28332 \
|
||||||
-zmqpubhashblock=tcp://127.0.0.1:28332
|
-zmqpubhashblock=tcp://127.0.0.1:28332
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ port = 28332
|
|||||||
|
|
||||||
class ZMQHandler():
|
class ZMQHandler():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.loop = zmq.asyncio.install()
|
self.loop = asyncio.get_event_loop()
|
||||||
self.zmqContext = zmq.asyncio.Context()
|
self.zmqContext = zmq.asyncio.Context()
|
||||||
|
|
||||||
self.zmqSubSocket = self.zmqContext.socket(zmq.SUB)
|
self.zmqSubSocket = self.zmqContext.socket(zmq.SUB)
|
||||||
|
4
contrib/zmq/zmq_sub3.4.py
Executable file → Normal file
4
contrib/zmq/zmq_sub3.4.py
Executable file → Normal file
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
Dash should be started with the command line arguments:
|
Dash should be started with the command line arguments:
|
||||||
dashd -testnet -daemon \
|
dashd -testnet -daemon \
|
||||||
-zmqpubhashblock=tcp://127.0.0.1:28332 \
|
|
||||||
-zmqpubrawtx=tcp://127.0.0.1:28332 \
|
-zmqpubrawtx=tcp://127.0.0.1:28332 \
|
||||||
|
-zmqpubrawblock=tcp://127.0.0.1:28332 \
|
||||||
-zmqpubhashtx=tcp://127.0.0.1:28332 \
|
-zmqpubhashtx=tcp://127.0.0.1:28332 \
|
||||||
-zmqpubhashblock=tcp://127.0.0.1:28332
|
-zmqpubhashblock=tcp://127.0.0.1:28332
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ port = 28332
|
|||||||
|
|
||||||
class ZMQHandler():
|
class ZMQHandler():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.loop = zmq.asyncio.install()
|
self.loop = asyncio.get_event_loop()
|
||||||
self.zmqContext = zmq.asyncio.Context()
|
self.zmqContext = zmq.asyncio.Context()
|
||||||
|
|
||||||
self.zmqSubSocket = self.zmqContext.socket(zmq.SUB)
|
self.zmqSubSocket = self.zmqContext.socket(zmq.SUB)
|
||||||
|
Loading…
Reference in New Issue
Block a user