class BitcoinMonitor extends AnyRef
Class to monitor incoming bitcoin blocks via a queue.
- Note
This monitor does not do any filtering or self-healing on the block stream if an outage of the bitcoin node or monitoring client occurs. For example, if a bitcoin node restart causes the entire chain to get re-applied, then the monitor will report all blocks again. In other words, duplicate blocks may appear in the stream.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BitcoinMonitor
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new BitcoinMonitor(blockQueue: Queue[IO, AppliedBitcoinBlock], startingBlocks: Vector[AppliedBitcoinBlock], bitcoind: BitcoindRpcClient, currentTip: Ref[IO, Option[AppliedBitcoinBlock]], subscriber: ZMQSubscriber)
- blockQueue
The queue in which new blocks will be added to
- startingBlocks
Past blocks that should be reported.
- bitcoind
Bitcoind RPC client
- currentTip
Reference to the most recent chain tip reported by the monitor
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def monitorBlocks(): Stream[IO, BitcoinBlockSync]
Return a stream of blocks.
Return a stream of blocks.
- returns
The infinite stream of blocks. If startingBlocks was provided, they will be at the front of the stream.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)