api

package
v0.1.0-beta.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHeaderHashMisMatch = errors.New("Header hash mis-matched")

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.MinimalEpochConsensusInfo

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 *Backend) LatestEpoch() uint64

func (*Backend) LatestVerifiedSlot

func (backend *Backend) LatestVerifiedSlot() uint64

func (*Backend) PendingPandoraHeaders

func (backed *Backend) PendingPandoraHeaders() []*eth1Types.Header

func (*Backend) SubscribeNewEpochEvent added in v0.7.0

func (backend *Backend) SubscribeNewEpochEvent(ch chan<- *types.MinimalEpochConsensusInfo) event.Subscription

func (*Backend) SubscribeNewVerifiedSlotInfoEvent added in v0.7.0

func (backend *Backend) SubscribeNewVerifiedSlotInfoEvent(ch chan<- *types.SlotInfoWithStatus) event.Subscription

func (*Backend) VerifiedSlotInfos added in v0.7.0

func (backend *Backend) VerifiedSlotInfos(fromSlot uint64) map[uint64]*types.SlotInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL