abstract class SyncUtil extends BitcoinSLogger
Useful utilities to use in the chain project for syncing things against bitcoind
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- SyncUtil
- BitcoinSLogger
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SyncUtil()
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]) @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])
- def getBestBlockHashFunc(bitcoind: BitcoindRpcClient): () => Future[DoubleSha256DigestBE]
Creates a function that will retrun bitcoin's best block hash when called
- def getBlockFunc(bitcoind: BitcoindRpcClient): (DoubleSha256DigestBE) => Future[Block]
- def getBlockHeaderFunc(bitcoind: BitcoindRpcClient)(implicit ec: ExecutionContext): (DoubleSha256DigestBE) => Future[BlockHeader]
Creates a function that you can pass a hash to and it returns the block header
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getFilterFunc(bitcoind: BlockchainRpc, filterType: FilterType)(implicit ec: ExecutionContext): (BlockHeader) => Future[FilterWithHeaderHash]
Creates a function that you can pass a block header to and it's return's it's GolombFilter
- def getNodeApi(bitcoindRpcClient: BitcoindRpcClient)(implicit ec: ExecutionContext): NodeApi
- def getNodeChainQueryApi(bitcoind: BitcoindRpcClient)(implicit ec: ExecutionContext): NodeChainQueryApi
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- 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()
- def syncBitcoindWithChainHandler(bitcoindWithChainHandler: BitcoindBaseVersionChainHandlerViaRpc)(implicit ec: ExecutionContext, chainAppConfig: ChainAppConfig): Future[BitcoindBaseVersionChainHandlerViaRpc]
Syncs the given chain handler to the given bitcoind node.
Syncs the given chain handler to the given bitcoind node. This also syncs block filters since we know a bitcoind v19 node has block filter capability
- def syncWalletFullBlocks(wallet: WalletApi, bitcoind: BitcoindRpcClient)(implicit ec: ExecutionContext): Future[WalletApi]
Syncs a wallet against bitcoind by retrieving full blocks and then calling Wallet.processBlock()
- 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()