Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVirtualNodeConfigNil = errors.New("virtual node config is nil") ErrVirtualNodeAlreadyRunning = errors.New("virtual node already running") ErrVirtualNodeNotRunning = errors.New("virtual node not running") ErrVirtualNodeCantStart = errors.New("virtual node cannot be started in this state") )
View Source
var ErrL1AtSafeHeadNotFound = errors.New("l1 at safe head not found")
Functions ¶
func NewVirtualNode ¶
func NewVirtualNode(cfg *opnodecfg.Config, log gethlog.Logger, initOverload *rollupNode.InitializationOverrides, appVersion string) *simpleVirtualNode
Types ¶
type VirtualNode ¶
type VirtualNode interface {
Start(ctx context.Context) error
Stop(ctx context.Context) error
SafeHeadAtL1(ctx context.Context, l1BlockNum uint64) (eth.BlockID, eth.BlockID, error)
// L1AtSafeHead returns the earliest L1 block at which the given L2 block became safe.
L1AtSafeHead(ctx context.Context, target eth.BlockID) (eth.BlockID, error)
CurrentL1(ctx context.Context) (eth.BlockRef, error)
}
Click to show internal directories.
Click to hide internal directories.