reaping

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxBackoffInterval is the maximum backoff interval for retries
	MaxBackoffInterval = 30 * time.Second
	CleanupInterval    = 1 * time.Hour
)

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,
	cache cache.CacheManager,
	scrapeInterval time.Duration,
	onTxsSubmitted func(),
) (*Reaper, error)

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

Jump to

Keyboard shortcuts

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