Documentation
¶
Index ¶
- Variables
- type Backend
- func (b *Backend) ConsensusInfoByEpochRange(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfoV2, error)
- func (b *Backend) GetSlotStatus(ctx context.Context, slot uint64, hash common.Hash, requestFrom bool) types.Status
- func (b *Backend) LatestEpoch() uint64
- func (b *Backend) LatestEpochInfo(ctx context.Context) (*types.MinimalEpochConsensusInfoV2, error)
- func (b *Backend) LatestFinalizedSlot() uint64
- func (b *Backend) LatestStepId() uint64
- func (b *Backend) StepId(slot uint64) uint64
- func (b *Backend) SubscribeNewEpochEvent(ch chan<- *types.MinimalEpochConsensusInfoV2) event.Subscription
- func (b *Backend) SubscribeNewReorgInfoEvent(ch chan<- *types.Reorg) event.Subscription
- func (b *Backend) SubscribeNewVerifiedSlotInfoEvent(ch chan<- *types.SlotInfoWithStatus) event.Subscription
- func (b *Backend) VerifiedShardInfos(fromSlot uint64) (map[uint64]*types.MultiShardInfo, error)
- func (b *Backend) VerifiedSlotInfos(fromSlot uint64) (map[uint64]*types.BlockStatus, error)
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 ReorgFeed conIface.ReorgInfoFeed // db reference ConsensusInfoDB db.ROnlyConsensusInfoDB VerifiedShardInfoDB db.ROnlyVerifiedShardInfoDB InvalidSlotInfoDB db.ROnlyInvalidSlotInfoDB // cache reference PanHeaderCache cache.PandoraInterface VanShardCache cache.VanguardInterface }
func (*Backend) ConsensusInfoByEpochRange ¶ added in v0.7.0
func (b *Backend) ConsensusInfoByEpochRange(fromEpoch uint64) ([]*types.MinimalEpochConsensusInfoV2, error)
func (*Backend) GetSlotStatus ¶ added in v0.7.0
func (b *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) LatestEpochInfo ¶ added in v0.7.0
func (*Backend) LatestFinalizedSlot ¶ added in v0.7.0
func (*Backend) LatestStepId ¶ added in v0.7.0
func (*Backend) SubscribeNewEpochEvent ¶ added in v0.7.0
func (b *Backend) SubscribeNewEpochEvent(ch chan<- *types.MinimalEpochConsensusInfoV2) event.Subscription
func (*Backend) SubscribeNewReorgInfoEvent ¶ added in v0.7.0
func (b *Backend) SubscribeNewReorgInfoEvent(ch chan<- *types.Reorg) event.Subscription
func (*Backend) SubscribeNewVerifiedSlotInfoEvent ¶ added in v0.7.0
func (b *Backend) SubscribeNewVerifiedSlotInfoEvent(ch chan<- *types.SlotInfoWithStatus) event.Subscription
func (*Backend) VerifiedShardInfos ¶ added in v0.7.0
VerifiedShardInfos retrieves shard infos from verified shard info db
func (*Backend) VerifiedSlotInfos ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.