head

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "trackerHead"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract interface {
	NetID() int64
	Addr() common.Address
}

type NoopSubs

type NoopSubs struct{}

func (*NoopSubs) Err

func (self *NoopSubs) Err() <-chan error

func (*NoopSubs) Unsubscribe

func (self *NoopSubs) Unsubscribe()

type TrackerHead

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

func New

func New(
	ctx context.Context,
	logger log.Logger,
	client *ethclient.Client,
	reorgWaitPeriod time.Duration,
) (*TrackerHead, chan *types.Block, error)

func (*TrackerHead) Start

func (self *TrackerHead) Start() error

func (*TrackerHead) Stop

func (self *TrackerHead) Stop()

Jump to

Keyboard shortcuts

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