poller

package
v1.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusPoller

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

StatusPoller repeatedly calls optimism_syncStatus on an L2 CL node in the background and classifies each response. It exists so an acceptance test can prove that patient callers never observe method-not-found or route-missing responses while the supernode swaps a chain's virtual node during reorg recovery, without the test having to manage RPC clients or goroutines itself.

func StartStatusPoller

func StartStatusPoller(cl *dsl.L2CLNode) *StatusPoller

StartStatusPoller begins polling the CL node's sync status in the background. It registers a t.Cleanup() to stop the poller and wait for it to drain at the end of the test, so callers never manage its lifecycle directly.

func (*StatusPoller) RequireNoRouteErrors

func (p *StatusPoller) RequireNoRouteErrors()

RequireNoRouteErrors asserts the poller observed at least one response and never saw a JSON-RPC method-not-found or a 404 route-missing response — i.e. the per-chain RPC gate held across the virtual-node swap.

func (*StatusPoller) WaitForNextSuccess

func (p *StatusPoller) WaitForNextSuccess()

WaitForNextSuccess blocks until the poller records a successful sync-status response after this call, failing the test if none arrives in time.

Jump to

Keyboard shortcuts

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