You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
node: bound the remaining sink-internal RPC reads (getOrigins, getChannel) — a stalled provider still wedges a watcher tick #1228
chain_events::timed bounds only the calls it wraps: the loop's own eth_getLogs, shared_head's eth_blockNumber, and any sink read that wraps itself. A follow-up RPC issued from inside LogSink::apply is otherwise unbounded — the alloy HTTP provider has no request timeout of its own, so a provider that holds the connection open and never responds wedges the tick forever, silently stopping event processing and blocking graceful shutdown.
chain_origin_directory — getOrigins re-read in on_tick_complete
payment_settlement — getChannel via reconcile_closing_channel (ChannelCloseInitiated arm)
reputation_indexer — nodeIdOf, 1–2 per ChannelSettled (provider + client legs)
The settlement one is on the payment-critical path.
Suggested shape
timed now accepts IntoFuture, so an alloy .call() wraps directly with no .into_future() at the call site:
let ch = timed(None,"getChannel", contract.getChannel(id).call()).await?;
Each site needs its own decision on what a timeout means there — for nodeIdOf in the registry it degrades to the existing counted-and-skipped path; for getChannel it should probably be retryable (fail the tick, back off).
Alternative worth considering
Rather than N self-bounding call sites, give LogSink a bounded provider handle so sink reads are timed by construction. That removes the "unless the sink wraps itself" footgun entirely, at the cost of a wider refactor.
Activity
fix(node,common): bound every sink-internal chain read (#1228) (#1233)