node

package
v0.0.160 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package node contains the node for the explorer service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExplorerBackfiller

type ExplorerBackfiller struct {

	// ChainBackfillers is a mapping of chain IDs -> chain backfillers.
	ChainBackfillers map[uint32]*backfill.ChainBackfiller
	// contains filtered or unexported fields
}

ExplorerBackfiller is a backfiller that aggregates all backfilling from ChainBackfillers.

func NewExplorerBackfiller

func NewExplorerBackfiller(consumerDB db.ConsumerDB, config config.Config, clients map[uint32]bind.ContractBackend, handler metrics.Handler) (*ExplorerBackfiller, error)

NewExplorerBackfiller creates a new backfiller for the explorer.

nolint:gocognit

func (ExplorerBackfiller) Backfill

func (e ExplorerBackfiller) Backfill(ctx context.Context, livefill bool) error

Backfill iterates over each chain backfiller and calls Backfill concurrently on each one.

nolint:cyclop

Jump to

Keyboard shortcuts

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