object RescanState
- Alphabetic
- By Inheritance
- RescanState
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class RescanStarted(completeRescanEarlyP: Promise[Option[Int]], blocksMatchedF: Future[Vector[BlockMatchingResponse]], recursiveRescanP: Promise[RescanState])(implicit ec: ExecutionContext) extends RescanState with Product with Serializable
Indicates a rescan has bene started The promise completeRescanEarlyP gives us the ability to terminate the rescan early by completing the promise blocksMatchedF is a future that is completed when the rescan is done this returns all blocks that were matched during the rescan.
Indicates a rescan has bene started The promise completeRescanEarlyP gives us the ability to terminate the rescan early by completing the promise blocksMatchedF is a future that is completed when the rescan is done this returns all blocks that were matched during the rescan. recursiveRescanP If the rescan is continued with a fresh pool of addresses it completes
recursiveRescanP
with the newRescanState.RescanStarted
. If the rescan is done becauseaddressGapLimit
is satisfied,recursiveRescanP
withRescanState.RescanNotNeeded
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 awaitRescanComplete(rescanState: RescanState)(implicit ec: ExecutionContext): Future[Unit]
Returns a Future that is completed when a rescan is fully executed.
Returns a Future that is completed when a rescan is fully executed. This means that the rescan was NOT terminated externally by completing the akka stream that underlies the rescan logic.
- def awaitRescanDone(rescanState: RescanState)(implicit ec: ExecutionContext): Future[Unit]
Returns a Future for all rescan states that will be complete when the rescan is done.
Returns a Future for all rescan states that will be complete when the rescan is done. This can be because the stream was externally termianted early, or the rescan completes. If you are interested in just the stream completing beacuse the rescan was fully executed, use awaitComplete())
- def awaitSingleRescanDone(rescanState: RescanState)(implicit ec: ExecutionContext): Future[Unit]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- case object RescanAlreadyStarted extends RescanState with Product with Serializable
A rescan has already been started
- case object RescanDone extends RescanState with Product with Serializable
Finished a rescan
- case object RescanNotNeeded extends RescanState with Product with Serializable
For the case where we do not need to initiate a recursive rescan with a fresh pool of wallet addresses
- case object RescanTerminatedEarly extends RuntimeException with Product with Serializable