initsequencer

package
v0.2.263 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NETWORK_FOLDER          = "network"
	GENESIS_FOLDER          = "genesis"
	PREV_SORT_KEYS_FILE     = "prev_sort_keys.json"
	LAST_ARWEAVE_BLOCK_FILE = "arweave_block.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*task.Task
}

func NewController

func NewController(config *config.Config, sequencerRepoPath string, env string) (self *Controller, err error)

type NextBlock added in v0.2.109

type NextBlock struct {
	*task.Task

	Output chan *arweave.NetworkInfo
	// contains filtered or unexported fields
}

func NewNextBlock added in v0.2.109

func NewNextBlock(config *config.Config) (self *NextBlock)

func (*NextBlock) WithLastSyncedBlock added in v0.2.109

func (self *NextBlock) WithLastSyncedBlock(lastSyncedBlock model.State) *NextBlock

type Writer

type Writer struct {
	*task.Task

	Output chan struct{}
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(config *config.Config) (self *Writer)

func (*Writer) WithDB

func (self *Writer) WithDB(db *gorm.DB) *Writer

func (*Writer) WithEnv added in v0.2.121

func (self *Writer) WithEnv(env string) *Writer

func (*Writer) WithInput

func (self *Writer) WithInput(input chan *listener.Payload) *Writer

func (*Writer) WithLastSyncedBlock added in v0.2.109

func (self *Writer) WithLastSyncedBlock(lastSyncedBlock model.State) *Writer

func (*Writer) WithSequencerRepoPath

func (self *Writer) WithSequencerRepoPath(sequencerRepoPath string) *Writer

Jump to

Keyboard shortcuts

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