mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-22 14:22:39 +01:00
parent
34e51c19cc
commit
3db7b176d3
2 changed files with 4 additions and 4 deletions
|
@ -175,7 +175,7 @@
|
|||
<dependency>
|
||||
<groupId>org.zeromq</groupId>
|
||||
<artifactId>jeromq</artifactId>
|
||||
<version>0.4.0</version>
|
||||
<version>0.5.0</version>
|
||||
</dependency>
|
||||
<!-- SERIALIZATION -->
|
||||
<dependency>
|
||||
|
|
|
@ -21,7 +21,7 @@ import akka.actor.{Actor, ActorLogging}
|
|||
import fr.acinq.bitcoin.{Block, Transaction}
|
||||
import fr.acinq.eclair.blockchain.{NewBlock, NewTransaction}
|
||||
import org.zeromq.ZMQ.Event
|
||||
import org.zeromq.{ZContext, ZMQ, ZMsg}
|
||||
import org.zeromq.{SocketType, ZContext, ZMQ, ZMsg}
|
||||
|
||||
import scala.annotation.tailrec
|
||||
import scala.concurrent.{ExecutionContext, Promise}
|
||||
|
@ -37,13 +37,13 @@ class ZMQActor(address: String, connected: Option[Promise[Done]] = None) extends
|
|||
|
||||
val ctx = new ZContext
|
||||
|
||||
val subscriber = ctx.createSocket(ZMQ.SUB)
|
||||
val subscriber = ctx.createSocket(SocketType.SUB)
|
||||
subscriber.monitor("inproc://events", ZMQ.EVENT_CONNECTED | ZMQ.EVENT_DISCONNECTED)
|
||||
subscriber.connect(address)
|
||||
subscriber.subscribe("rawblock".getBytes(ZMQ.CHARSET))
|
||||
subscriber.subscribe("rawtx".getBytes(ZMQ.CHARSET))
|
||||
|
||||
val monitor = ctx.createSocket(ZMQ.PAIR)
|
||||
val monitor = ctx.createSocket(SocketType.PAIR)
|
||||
monitor.connect("inproc://events")
|
||||
|
||||
implicit val ec: ExecutionContext = context.system.dispatcher
|
||||
|
|
Loading…
Add table
Reference in a new issue