consensus

package
v0.1.0-rc.1-kravitz Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareShardingInfo

func CompareShardingInfo(ph *eth1Types.Header, vs *eth2Types.PandoraShard) bool

Types

type Config

type Config struct {
	VerifiedSlotInfoDB           db.VerifiedSlotInfoDB
	InvalidSlotInfoDB            db.InvalidSlotInfoDB
	VanguardPendingShardingCache cache.VanguardShardCache
	PandoraPendingHeaderCache    cache.PandoraHeaderCache

	VanguardShardFeed iface.VanguardShardInfoFeed
	PandoraHeaderFeed iface2.PandoraHeaderFeed
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service This part could be moved to other place during refactor, might be registered as a service

func New

func New(ctx context.Context, cfg *Config) (service *Service)

func (*Service) Start

func (s *Service) Start()

func (*Service) Status

func (s *Service) Status() error

func (*Service) Stop

func (s *Service) Stop() error

func (*Service) SubscribeVerifiedSlotInfoEvent

func (s *Service) SubscribeVerifiedSlotInfoEvent(ch chan<- *types.SlotInfoWithStatus) event.Subscription

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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