backfill

package
v1.1.2-mainnet.rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateEvent   = errors.New("must pass distinct events when passing more than one")
	ErrTooFewEvents     = errors.New("must specify at least one event to backfill")
	ErrTooManyEvents    = fmt.Errorf("cannot backfill more than %d events", MaxEvents)
	ErrUnsupportedEvent = fmt.Errorf("invalid event detected: only %s, %s, %s events supported", ForkEvent, FrobEvent, GrabEvent)
	ForkEvent           = "fork"
	FrobEvent           = "frob"
	GrabEvent           = "grab"
	MaxEvents           = 3
)

Functions

func ValidateArgs

func ValidateArgs(eventsToBackFill []string) error

Types

type BackFiller

type BackFiller interface {
	BackFill(startingBlock int) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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