Documentation ¶
Index ¶
- func MakeRange(min, max int64) []int64
- func PopulateMissingHeaders(blockChain core.BlockChain, headerRepository datastore.HeaderRepository, ...) (int, error)
- func RetrieveAndUpdateHeaders(blockChain core.BlockChain, headerRepository datastore.HeaderRepository, ...) (int, error)
- type HeaderValidator
- type ValidationWindow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateMissingHeaders ¶
func PopulateMissingHeaders(blockChain core.BlockChain, headerRepository datastore.HeaderRepository, startingBlockNumber int64) (int, error)
func RetrieveAndUpdateHeaders ¶
func RetrieveAndUpdateHeaders(blockChain core.BlockChain, headerRepository datastore.HeaderRepository, blockNumbers []int64) (int, error)
Types ¶
type HeaderValidator ¶
type HeaderValidator struct {
// contains filtered or unexported fields
}
func NewHeaderValidator ¶
func NewHeaderValidator(blockChain core.BlockChain, repository datastore.HeaderRepository, windowSize int) HeaderValidator
func (HeaderValidator) ValidateHeaders ¶
func (validator HeaderValidator) ValidateHeaders() (ValidationWindow, error)
type ValidationWindow ¶
func MakeValidationWindow ¶
func MakeValidationWindow(blockchain core.BlockChain, windowSize int) (ValidationWindow, error)
func (ValidationWindow) GetString ¶
func (window ValidationWindow) GetString() string
func (ValidationWindow) Size ¶
func (window ValidationWindow) Size() int
Click to show internal directories.
Click to hide internal directories.