receiver

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlocksOutput     = "blocks"
	RollbackOutput   = "signal"
	RollbackInput    = "state"
	GenesisOutput    = "genesis"
	GenesisDoneInput = "genesis_done"
	StopOutput       = "stop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	modules.BaseModule
	// contains filtered or unexported fields
}

Module - runs through a chain aiming to catch up the head

		and identifies whether the block fits in sequence or signals of rollback.

	|----------------|
	|                | -- types.BlockData -> BlocksOutput
	|     MODULE     |
	|    Receiver    | -- struct{}        -> RollbackOutput
	|                | <- storage.State   -- RollbackInput
    |----------------|

func NewModule

func NewModule(cfg config.Indexer, api node.Api, ws *http.HTTP, state *storage.State) Module

func (*Module) Close

func (r *Module) Close() error

func (*Module) Level

func (r *Module) Level() (types.Level, []byte)

func (*Module) Start

func (r *Module) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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