package sync
- Alphabetic
- Public
- Protected
Type Members
- abstract class ChainSync extends ChainVerificationLogger
- abstract class FilterSync extends ChainVerificationLogger
A class that is meant to expose and api to sync GolombFilters and FilterHeaders from an external data source.
A class that is meant to expose and api to sync GolombFilters and FilterHeaders from an external data source. The important thing to implement is
getFilterFunc: BlockHeader => Future[GolombFilter]
which will allow us to sync our internal filters against.
It should be noted you are entirely trusting the provider of the
getFilterFunc
as you aren't able to validate the result against another peer that as BIP157 specifies - case class FilterWithHeaderHash(filter: GolombFilter, filterHeaderHash: DoubleSha256DigestBE) extends Product with Serializable
Represents a GolombFilter with it's org.bitcoins.core.gcs.FilterHeader associated with it This is needed because bitcoin core's 'getblockfilter' rpc returns things in this structure
Represents a GolombFilter with it's org.bitcoins.core.gcs.FilterHeader associated with it This is needed because bitcoin core's 'getblockfilter' rpc returns things in this structure
- See also
https://developer.bitcoin.org/reference/rpc/getblockfilter.html#argument-2-filtertype
Value Members
- object ChainSync extends ChainSync
- object FilterSync extends FilterSync