challenger

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(logger log.Logger, version string, cfg *config.Config) error

Main is the entrypoint into the Challenger. This method executes the service and blocks until the service exits.

Types

type Challenger

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

Challenger contests invalid L2OutputOracle outputs

func NewChallenger

func NewChallenger(cfg config.Config, l log.Logger, m metrics.Metricer) (*Challenger, error)

NewChallenger creates a new Challenger

func (*Challenger) Start

func (c *Challenger) Start() error

Start runs the challenger in a goroutine.

func (*Challenger) Stop

func (c *Challenger) Stop()

Stop closes the challenger and waits for spawned goroutines to exit.

Jump to

Keyboard shortcuts

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