Documentation
¶
Index ¶
- Variables
- type Option
- type SoloSequencer
- func (s *SoloSequencer) GetDAHeight() uint64
- func (s *SoloSequencer) GetNextBatch(ctx context.Context, req coresequencer.GetNextBatchRequest) (*coresequencer.GetNextBatchResponse, error)
- func (s *SoloSequencer) SetDAHeight(height uint64)
- func (s *SoloSequencer) SubmitBatchTxs(ctx context.Context, req coresequencer.SubmitBatchTxsRequest) (*coresequencer.SubmitBatchTxsResponse, error)
- func (s *SoloSequencer) VerifyBatch(ctx context.Context, req coresequencer.VerifyBatchRequest) (*coresequencer.VerifyBatchResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidID = common.ErrInvalidID ErrQueueFull = common.ErrQueueFull )
Functions ¶
This section is empty.
Types ¶
type Option ¶ added in v1.1.2
type Option func(*SoloSequencer)
Option configures a SoloSequencer.
func WithMaxQueueBytes ¶ added in v1.1.2
WithMaxQueueBytes sets a soft cap on the sequencer's in-memory tx queue. SubmitBatchTxs admits txs while the cap has room and returns ErrQueueFull when the incoming batch would exceed it. A zero value (default) disables the cap.
type SoloSequencer ¶
type SoloSequencer struct {
// contains filtered or unexported fields
}
SoloSequencer is a single-leader sequencer without forced inclusion support. It maintains a simple in-memory queue of mempool transactions and produces batches on demand.
func NewSoloSequencer ¶
func (*SoloSequencer) GetDAHeight ¶
func (s *SoloSequencer) GetDAHeight() uint64
func (*SoloSequencer) GetNextBatch ¶
func (s *SoloSequencer) GetNextBatch(ctx context.Context, req coresequencer.GetNextBatchRequest) (*coresequencer.GetNextBatchResponse, error)
func (*SoloSequencer) SetDAHeight ¶
func (s *SoloSequencer) SetDAHeight(height uint64)
func (*SoloSequencer) SubmitBatchTxs ¶
func (s *SoloSequencer) SubmitBatchTxs(ctx context.Context, req coresequencer.SubmitBatchTxsRequest) (*coresequencer.SubmitBatchTxsResponse, error)
func (*SoloSequencer) VerifyBatch ¶
func (s *SoloSequencer) VerifyBatch(ctx context.Context, req coresequencer.VerifyBatchRequest) (*coresequencer.VerifyBatchResponse, error)
Click to show internal directories.
Click to hide internal directories.