consensus

package
v0.0.46-beta Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 17 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

Jump to

Keyboard shortcuts

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