reaping

package
v1.0.0-beta.11 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultInterval is the default reaper interval
	DefaultInterval = 1 * time.Second
	// MaxBackoffInterval is the maximum backoff interval for retries
	MaxBackoffInterval = 30 * time.Second
	// BackoffMultiplier is the multiplier for exponential backoff
	BackoffMultiplier = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reaper

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

Reaper is responsible for periodically retrieving transactions from the executor, filtering out already seen transactions, and submitting new transactions to the sequencer.

func NewReaper

func NewReaper(
	exec coreexecutor.Executor,
	sequencer coresequencer.Sequencer,
	genesis genesis.Genesis,
	logger zerolog.Logger,
	executor *executing.Executor,
	cache cache.Manager,
	scrapeInterval time.Duration,
) (*Reaper, error)

NewReaper creates a new Reaper instance.

func (*Reaper) Start

func (r *Reaper) Start(ctx context.Context) error

Start begins the execution component

func (*Reaper) Stop

func (r *Reaper) Stop() error

Stop shuts down the reaper component

func (*Reaper) SubmitTxs

func (r *Reaper) SubmitTxs() error

SubmitTxs retrieves transactions from the executor and submits them to the sequencer. Returns an error if any critical operation fails.

Jump to

Keyboard shortcuts

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