initsequencer

package
v0.2.84 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIG_PATH_FORMAT      = "network/local/sequencer-%d/config/"
	PREV_SORT_KEYS_FILE     = "prev_sort_keys.json"
	LAST_ARWEAVE_BLOCK_FILE = "last_arweave_block.json"
	NUMBER_OF_NODES         = 3
)

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) (self *Controller, err error)

type NextFinishedBlock

type NextFinishedBlock struct {
	*task.Task

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

func NewNextFinishedBlock

func NewNextFinishedBlock(config *config.Config) (self *NextFinishedBlock)

func (*NextFinishedBlock) WithDB

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

type Writer

type Writer struct {
	*task.Task

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

func NewWriter

func NewWriter(config *config.Config, sequencerRepoPath string) (self *Writer)

func (*Writer) WithDB

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

func (*Writer) WithInput

func (self *Writer) WithInput(input chan *arweave.Block) *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