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

Smoldot - crash strategy #507

Closed
wirednkod opened this issue Oct 8, 2021 · 3 comments
Closed

Smoldot - crash strategy #507

wirednkod opened this issue Oct 8, 2021 · 3 comments

Comments

@wirednkod
Copy link
Contributor

We need to have a strategy when a smoldot crash happens.
Probably, when this occurs, we should disconnect the apps from the chain, inform the UI (emit?) of the App and/or the extension and re-start smoldot.

@tomaka
Copy link
Contributor

tomaka commented Dec 13, 2021

As a heads up, this can be done by catching a CrashError when calling any of the methods of smoldot:
https://github.com/paritytech/smoldot/blob/409ea559fa7fddfccd79c4f000def8f0e81bd350/bin/wasm-node/javascript/src/index.d.ts#L43.

I would suggest doing all of this in index.ts.

@tomaka
Copy link
Contributor

tomaka commented Mar 5, 2022

cc #429 (comment)

@ryanleecode
Copy link
Collaborator

#1786

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

No branches or pull requests

3 participants