api

package
v0.0.24-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend added in v0.7.0

type Backend struct {
	ConsensusInfoFeed    iface.ConsensusInfoFeed
	ConsensusInfoDB      db.ROnlyConsensusInfoDB
	VanguardHeaderHashDB db.VanguardHeaderHashDB
	PandoraHeaderHashDB  db.PandoraHeaderHashDB
	RealmDB              db.RealmDB

	sync.Mutex
	// contains filtered or unexported fields
}

func (*Backend) ConsensusInfoByEpochRange added in v0.7.0

func (backend *Backend) ConsensusInfoByEpochRange(fromEpoch uint64) []*types.MinimalEpochConsensusInfo

func (*Backend) CurrentEpoch

func (backend *Backend) CurrentEpoch() uint64

func (*Backend) FetchPanBlockStatus

func (backend *Backend) FetchPanBlockStatus(slot uint64, hash common.Hash) (status events.Status, err error)

func (*Backend) FetchVanBlockStatus

func (backend *Backend) FetchVanBlockStatus(slot uint64, hash common.Hash) (status events.Status, err error)

func (*Backend) GetPendingHashes

func (backend *Backend) GetPendingHashes() (response *events.PendingHashesResponse, err error)

func (*Backend) SubscribeNewEpochEvent added in v0.7.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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