syncer

package
v0.0.0-...-5d7b32d Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoNetwork = errors.New("no network provided")
	ErrNoStore   = errors.New("no store provided")
)

Functions

This section is empty.

Types

type Syncer

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

func NewSyncer

func NewSyncer(conf config.Config) *Syncer

func (*Syncer) ArchiveSync

func (s *Syncer) ArchiveSync(ctx context.Context) error

func (*Syncer) BlockOracle

func (s *Syncer) BlockOracle(ctx context.Context)

func (*Syncer) Init

func (s *Syncer) Init() error

func (*Syncer) LiveSync

func (s *Syncer) LiveSync(ctx context.Context, bn int64)

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context) error

func (*Syncer) WithContext

func (s *Syncer) WithContext(ctx context.Context) *Syncer

func (*Syncer) WithNetwork

func (s *Syncer) WithNetwork(n *eth.Network) *Syncer

func (*Syncer) WithStore

func (s *Syncer) WithStore(st storage.Store) *Syncer

Jump to

Keyboard shortcuts

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