whitelist

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMismatch = errors.New("mismatch error")
	ErrNoRemote = errors.New("remote peer doesn't have a target block number")
)

Functions

func RegisterService

func RegisterService(db kv.RwDB)

Types

type Service

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

func GetWhitelistingService

func GetWhitelistingService() *Service

func NewService

func NewService(db kv.RwDB) *Service

func (*Service) GetMilestoneIDsList

func (s *Service) GetMilestoneIDsList() []string

func (*Service) GetWhitelistedCheckpoint

func (s *Service) GetWhitelistedCheckpoint() (bool, uint64, common.Hash)

func (*Service) GetWhitelistedMilestone

func (s *Service) GetWhitelistedMilestone() (bool, uint64, common.Hash)

func (*Service) IsValidChain

func (s *Service) IsValidChain(currentHeader uint64, chain []*types.Header) bool

func (*Service) ProcessCheckpoint

func (s *Service) ProcessCheckpoint(endBlockNum uint64, endBlockHash common.Hash)

func (*Service) ProcessMilestone

func (s *Service) ProcessMilestone(endBlockNum uint64, endBlockHash common.Hash)

func (*Service) PurgeWhitelistedCheckpoint

func (s *Service) PurgeWhitelistedCheckpoint() error

func (*Service) PurgeWhitelistedMilestone

func (s *Service) PurgeWhitelistedMilestone() error

Jump to

Keyboard shortcuts

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