Documentation
¶
Index ¶
- Variables
- func RegisterService(db kv.RwDB)
- type Service
- func (s *Service) GetMilestoneIDsList() []string
- func (s *Service) GetWhitelistedCheckpoint() (bool, uint64, common.Hash)
- func (s *Service) GetWhitelistedMilestone() (bool, uint64, common.Hash)
- func (s *Service) IsValidChain(currentHeader uint64, chain []*types.Header) bool
- func (s *Service) ProcessCheckpoint(endBlockNum uint64, endBlockHash common.Hash)
- func (s *Service) ProcessMilestone(endBlockNum uint64, endBlockHash common.Hash)
- func (s *Service) PurgeWhitelistedCheckpoint() error
- func (s *Service) PurgeWhitelistedMilestone() error
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 ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func GetWhitelistingService ¶
func GetWhitelistingService() *Service
func NewService ¶
func (*Service) GetMilestoneIDsList ¶
func (*Service) GetWhitelistedCheckpoint ¶
func (*Service) GetWhitelistedMilestone ¶
func (*Service) IsValidChain ¶
func (*Service) ProcessCheckpoint ¶
func (*Service) ProcessMilestone ¶
func (*Service) PurgeWhitelistedCheckpoint ¶
func (*Service) PurgeWhitelistedMilestone ¶
Click to show internal directories.
Click to hide internal directories.