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.