supernode

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Supernode

type Supernode struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, log gethlog.Logger, version string, requestStop context.CancelCauseFunc, cfg *config.CLIConfig, vnCfgs map[eth.ChainID]*opnodecfg.Config) (*Supernode, error)

func (*Supernode) BeaconClient

func (s *Supernode) BeaconClient() *sources.L1BeaconClient

BeaconClient returns the L1 Beacon client instance (may be nil if not configured)

func (*Supernode) L1Client

func (s *Supernode) L1Client() *sources.L1Client

L1Client returns the L1 client instance

func (*Supernode) RPCAddr

func (s *Supernode) RPCAddr() (addr string, ok bool)

RPCAddr returns the bound RPC address (host:port) if the server is listening. ok is false if the listener has not been created yet.

func (*Supernode) Start

func (s *Supernode) Start(ctx context.Context) error

func (*Supernode) Stop

func (s *Supernode) Stop(ctx context.Context) error

func (*Supernode) Stopped

func (s *Supernode) Stopped() bool

func (*Supernode) WaitRPCAddr

func (s *Supernode) WaitRPCAddr(ctx context.Context) (string, error)

WaitRPCAddr blocks until the RPC server has a bound address or the context is done.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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