consensus

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 23 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
	PanHeaderCache      cache.PandoraInterface
	VanShardCache       cache.VanguardInterface
	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) SubscribeReorgInfoEvent

func (s *Service) SubscribeReorgInfoEvent(ch chan<- *types.Reorg) event.Subscription

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