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.
Click to show internal directories.
Click to hide internal directories.