Documentation ¶
Index ¶
- Variables
- type Backend
- func (backend *Backend) ConsensusInfoByEpochRange(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfoV2, error)
- func (backend *Backend) GetSlotStatus(ctx context.Context, slot uint64, hash common.Hash, requestFrom bool) types.Status
- func (backend *Backend) LatestEpoch() uint64
- func (backend *Backend) LatestFinalizedSlot() uint64
- func (backend *Backend) LatestVerifiedSlot() uint64
- func (backed *Backend) PendingPandoraHeaders() []*eth1Types.Header
- func (backend *Backend) SubscribeNewEpochEvent(ch chan<- *types.MinimalEpochConsensusInfoV2) event.Subscription
- func (backend *Backend) SubscribeNewVerifiedSlotInfoEvent(ch chan<- *types.SlotInfoWithStatus) event.Subscription
- func (backend *Backend) VerifiedSlotInfos(fromSlot uint64) map[uint64]*types.SlotInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHeaderHashMisMatch = errors.New("header hash mismatched")
Functions ¶
This section is empty.
Types ¶
type Backend ¶ added in v0.7.0
type Backend struct { // feed ConsensusInfoFeed iface.ConsensusInfoFeed VerifiedSlotInfoFeed conIface.VerifiedSlotInfoFeed // db reference ConsensusInfoDB db.ROnlyConsensusInfoDB VerifiedSlotInfoDB db.ROnlyVerifiedSlotInfoDB InvalidSlotInfoDB db.ROnlyInvalidSlotInfoDB // cache reference VanguardPendingShardingCache cache.VanguardShardCache PandoraPendingHeaderCache cache.PandoraHeaderCache }
func (*Backend) ConsensusInfoByEpochRange ¶ added in v0.7.0
func (backend *Backend) ConsensusInfoByEpochRange(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfoV2, error)
func (*Backend) GetSlotStatus ¶ added in v0.7.0
func (backend *Backend) GetSlotStatus(ctx context.Context, slot uint64, hash common.Hash, requestFrom bool) types.Status
GetSlotStatus
func (*Backend) LatestEpoch ¶ added in v0.7.0
func (*Backend) LatestFinalizedSlot ¶ added in v0.7.0
func (*Backend) LatestVerifiedSlot ¶
func (*Backend) PendingPandoraHeaders ¶
func (*Backend) SubscribeNewEpochEvent ¶ added in v0.7.0
func (backend *Backend) SubscribeNewEpochEvent(ch chan<- *types.MinimalEpochConsensusInfoV2) event.Subscription
func (*Backend) SubscribeNewVerifiedSlotInfoEvent ¶ added in v0.7.0
func (backend *Backend) SubscribeNewVerifiedSlotInfoEvent(ch chan<- *types.SlotInfoWithStatus) event.Subscription
Click to show internal directories.
Click to hide internal directories.