package blockchain
- Alphabetic
- Public
- Protected
Type Members
- sealed abstract class ChainException extends RuntimeException
A base class for various types of block chain exceptions
- class ChainHandler extends ChainApi with ChainVerificationLogger
Chain Handler is meant to be the reference implementation of ChainApi, this is the entry point in to the chain project.
Chain Handler is meant to be the reference implementation of ChainApi, this is the entry point in to the chain project.
This implementation of ChainApi reads all values directly from the database. If you want an optimized version that caches headers locally please see ChainHandlerCached
- case class ChainHandlerCached(blockHeaderDAO: BlockHeaderDAO, filterHeaderDAO: CompactFilterHeaderDAO, filterDAO: CompactFilterDAO, stateDAO: ChainStateDescriptorDAO, blockchains: Vector[Blockchain], blockFilterCheckpoints: Map[DoubleSha256DigestBE, DoubleSha256DigestBE])(implicit chainConfig: ChainAppConfig, executionContext: ExecutionContext) extends ChainHandler with Product with Serializable
An optimized version of ChainHandler that avoids database reads for determining what the best block header is.
An optimized version of ChainHandler that avoids database reads for determining what the best block header is. This should be used with care as it is possible the cached blockchains may be out of date! Unless you know what you are doing, you should probably use ChainHandler
- case class DuplicateFilters(message: String) extends ChainException with Product with Serializable
org.bitcoins.chain.blockchain.ChainHandler tried to process multiple filters for the same block hash
- case class DuplicateHeaders(message: String) extends ChainException with Product with Serializable
- case class InvalidBlockHeader(message: String) extends ChainException with Product with Serializable
- case class InvalidBlockRange(message: String) extends ChainException with Product with Serializable
The given block range is invalid
- case class UnknownBlockHash(message: String) extends ChainException with Product with Serializable
org.bitcoins.chain.blockchain.ChainHandler cannot find a blockchain item by its block hash
- case class UnknownBlockHeight(message: String) extends ChainException with Product with Serializable
org.bitcoins.chain.blockchain.ChainHandler cannot find a blockchain item by its height
- case class UnknownFilterHash(message: String) extends ChainException with Product with Serializable
org.bitcoins.chain.blockchain.ChainHandler cannot find a compact filter or header by its filter hash
Value Members
- object ChainHandler
- object ChainHandlerCached extends Serializable