consensus

package
v0.6.0-develop Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TotalExecutionShardCount = 1
	ShardsPerVanBlock        = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	VerifiedShardInfoDB          db.VerifiedShardInfoDB
	VanguardPendingShardingCache cache.VanguardShardCache
	PandoraPendingHeaderCache    cache.PandoraHeaderCache
	VanguardShardFeed            iface.VanguardService
	PandoraHeaderFeed            iface2.PandoraService
}

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