Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(extension): supervised smoldot #2157

Closed
wants to merge 12 commits into from

Conversation

ryanleecode
Copy link
Collaborator

@ryanleecode ryanleecode commented Apr 29, 2024

closes: #1786

Adds a supervisor to detect when smoldot crashes/unresponsive by monitoring each chain that is added and polling it by getting the genesis hash. When a crash is detected, smoldot is restarted and this means you won't need to turn the extension on and off again.

However, the webpage/dapp will most likely require a refresh.

In terms of functionality, when you leave a dapp the chains it is connected to no longer are "unconnnected". they are watched forever until a smoldot restart happens. This is the compromise made to get this to work, but I think having it like this is better.


Avoiding any type of chainhead follow polling due to (somehow) getting chainhead follow subscription limit reached

image


Demo of smoldot crashing and it being restarted in the extension.

image

https://www.loom.com/share/59ecf161491f4a5884b0551be7a36698?t=111&sid=0d9e68c1-9833-47ce-848d-1de004cc87ba

@ryanleecode ryanleecode force-pushed the feat/extension/supervised-smoldot branch 3 times, most recently from e66bac5 to 49c5ef5 Compare May 2, 2024 17:55
@ryanleecode ryanleecode force-pushed the feat/extension/supervised-smoldot branch from 695f7f7 to 12bd169 Compare May 2, 2024 21:49
@ryanleecode ryanleecode marked this pull request as ready for review May 2, 2024 21:58
@ryanleecode ryanleecode requested review from marshacb and jsdw May 2, 2024 21:58
@ryanleecode
Copy link
Collaborator Author

@jsdw tagging you for a review here since this issue is a bit trickey

@ryanleecode
Copy link
Collaborator Author

superseding this with #2161 and #2162 and more to come...., since this approach isnt really working all that well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The extension gets "stuck" in the past
1 participant