Skip to content

Commit 5d61248

Browse files
UdjinM6codablock
authored andcommitted
Merge pull request dashpay#3028 from PastaPastaPasta/backport-12588
Backport a couple of ZMQ fixes
1 parent 4db45dd commit 5d61248

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contrib/zmq/zmq_sub.py

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
99
Dash should be started with the command line arguments:
1010
dashd-testnet -daemon \
11-
-zmqpubhashblock=tcp://127.0.0.1:28332 \
1211
-zmqpubrawtx=tcp://127.0.0.1:28332 \
12+
-zmqpubrawblock=tcp://127.0.0.1:28332 \
1313
-zmqpubhashtx=tcp://127.0.0.1:28332 \
1414
-zmqpubhashblock=tcp://127.0.0.1:28332
1515
@@ -38,7 +38,7 @@
3838

3939
class ZMQHandler():
4040
def __init__(self):
41-
self.loop = zmq.asyncio.install()
41+
self.loop = asyncio.get_event_loop()
4242
self.zmqContext = zmq.asyncio.Context()
4343

4444
self.zmqSubSocket = self.zmqContext.socket(zmq.SUB)

contrib/zmq/zmq_sub3.4.py

100755100644
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
99
Dash should be started with the command line arguments:
1010
dashd -testnet -daemon \
11-
-zmqpubhashblock=tcp://127.0.0.1:28332 \
1211
-zmqpubrawtx=tcp://127.0.0.1:28332 \
12+
-zmqpubrawblock=tcp://127.0.0.1:28332 \
1313
-zmqpubhashtx=tcp://127.0.0.1:28332 \
1414
-zmqpubhashblock=tcp://127.0.0.1:28332
1515
@@ -42,7 +42,7 @@
4242

4343
class ZMQHandler():
4444
def __init__(self):
45-
self.loop = zmq.asyncio.install()
45+
self.loop = asyncio.get_event_loop()
4646
self.zmqContext = zmq.asyncio.Context()
4747

4848
self.zmqSubSocket = self.zmqContext.socket(zmq.SUB)

0 commit comments

Comments
 (0)