limiters

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInsufficientSpace = errors.New("insufficient space in BatchSizeLimiter")

Functions

This section is empty.

Types

type BatchSizeLimiter

type BatchSizeLimiter interface {
	AcceptTransaction(tx *types.Transaction) error
}

func NewBatchSizeLimiter

func NewBatchSizeLimiter(size uint64) BatchSizeLimiter

NewBatchSizeLimiter - Size is the total space available per batch for calldata in a rollup.

func NewUnlimitedSizePool

func NewUnlimitedSizePool() BatchSizeLimiter

type RollupLimiter

type RollupLimiter interface {
	AcceptBatch(batch *core.Batch) (bool, error)
}

func NewRollupLimiter

func NewRollupLimiter(size uint64) RollupLimiter

Jump to

Keyboard shortcuts

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