whitelist

package
v1.9.7-0...-3120de9 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: LGPL-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