Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher assumes exclusive control of underlying blockchain, i.e. mining and blockchain insertion can not happen. TODO: support Berlin+London fork
func NewBatcher ¶
func (*Batcher) Batch ¶
Batch will force the remaining transactions to form a block, insert it into the blockchain, and return all blocks created between Batch calls
func (*Batcher) CommitTransactions ¶
func (b *Batcher) CommitTransactions(txs []*types.Transaction) error
CommitTransactions will try fill transactions into blocks, and insert full blocks into the blockchain TODO: recover from failed commitBlock, rewind blockchain
type Sequencer ¶
type Sequencer struct {
*services.BaseService
}
TODO: delete this implementation. Current Sequencer assumes no Berlin+London fork on L2
func New ¶
func New(eth api.ExecutionBackend, proofBackend proof.Backend, l1Client client.L1BridgeClient, cfg services.BaseConfig) (*Sequencer, error)
Click to show internal directories.
Click to hide internal directories.