Documentation
¶
Index ¶
- type Supernode
- func (s *Supernode) BeaconClient() *sources.L1BeaconClient
- func (s *Supernode) InteropActivity() *interop.Interop
- func (s *Supernode) L1Client() *sources.L1Client
- func (s *Supernode) RPCAddr() (addr string, ok bool)
- func (s *Supernode) RestartInteropActivity(wipeLogsDBs bool) error
- func (s *Supernode) Start(ctx context.Context) error
- func (s *Supernode) Stop(ctx context.Context) error
- func (s *Supernode) Stopped() bool
- func (s *Supernode) WaitRPCAddr(ctx context.Context) (string, error)
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 (*Supernode) BeaconClient ¶
func (s *Supernode) BeaconClient() *sources.L1BeaconClient
BeaconClient returns the L1 Beacon client instance (may be nil if not configured)
func (*Supernode) InteropActivity ¶
InteropActivity returns the single interop activity registered with the supernode, or nil if interop is not configured or has not started yet. Callers must not cache the returned pointer across RestartInteropActivity; that path swaps the underlying activity for a fresh instance.
func (*Supernode) RPCAddr ¶
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) RestartInteropActivity ¶
RestartInteropActivity stops the running interop activity (if any), optionally wipes its on-disk logs DB files, constructs a fresh instance from the originally-configured parameters, re-registers it with each chain container as a verifier, and starts it under the supernode's existing lifecycle context. The HTTP server, chain containers, and all other activities keep running. This is the core primitive for tests that want to exercise log backfill against a running, ready cluster without the cost and flakiness of restarting the entire supernode.
Any test-only mutations on the old activity are discarded when it is Stopped.