light-base: add lifecycle_unstable_follow RPC subscription - #3317
Open
BigTava wants to merge 11 commits into
Open
light-base: add lifecycle_unstable_follow RPC subscription#3317BigTava wants to merge 11 commits into
BigTava wants to merge 11 commits into
Conversation
BigTava
force-pushed
the
feat/lifecycle-events
branch
from
July 31, 2026 10:52
92fee3b to
4d8b3ff
Compare
BigTava
force-pushed
the
feat/lifecycle-events
branch
from
July 31, 2026 11:17
4d8b3ff to
e8243e7
Compare
BigTava
force-pushed
the
feat/lifecycle-events
branch
from
July 31, 2026 11:44
e8243e7 to
a320fe3
Compare
lrubasze
reviewed
Jul 31, 2026
BigTava
force-pushed
the
feat/lifecycle-events
branch
from
July 31, 2026 13:05
a320fe3 to
4432aa7
Compare
BigTava
force-pushed
the
feat/lifecycle-events
branch
from
July 31, 2026 23:56
4432aa7 to
da3a47a
Compare
…ss + stall-to-stall Recovered
BigTava
marked this pull request as ready for review
August 4, 2026 08:35
This was referenced Aug 5, 2026
…in lifecycle-follow dispatch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lifecycle_unstable_follow/lifecycle_unstable_unfollowJSON-RPC methods, sharing the 32-byte bs58 subscription-id format used bytransactionWatch_v1_submitAndWatchandbitswap_unstable_stream.LifecycleServicebroadcaster with a 128-event history for late subscribers and a bounded per-subscriber channel sized against replay so a snapshot burst cannot silently kill the subscription before it is registered for live delivery.LifecycleEventvariants (Connecting,FirstPeer,ModeDecision,WarpSyncProgress,WarpSyncFinished,BootstrapComplete,Stalled) with matching JSON schema and docstrings on both sides.light-base/src/lib.rsthat translatesync_serviceandnetwork_service_chainsignals into lifecycle events, plus a one-shot stall watchdog.background_tasksFuturesUnorderedwith map-lookup unsubscribe-race handling, mirroring thetransactionWatchandbitswapidioms.