Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultInterval = 1 * time.Second
DefaultInterval is the default reaper interval
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, scrapeInterval time.Duration, ) (*Reaper, error)
NewReaper creates a new Reaper instance with persistent seenTx storage.
Click to show internal directories.
Click to hide internal directories.