node

package
v0.0.83 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package node uses the backfiller to get all previous logs, and then listens to the height of the blockchain in order to add new logs as blocks come in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scribe

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

Scribe is a live scribe that logs all event data.

func NewScribe

func NewScribe(eventDB db.EventDB, clients map[uint32][]backfill.ScribeBackend, config config.Config) (*Scribe, error)

NewScribe creates a new scribe.

func (Scribe) Start

func (s Scribe) Start(ctx context.Context) error

Start starts the scribe. This works by starting a backfill and recording what the current block, which it will backfill to. Then, each chain will listen for new block heights and backfill to that height.

Jump to

Keyboard shortcuts

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