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

Use smoldot's database system in the extension #568

Closed
tomaka opened this issue Dec 9, 2021 · 1 comment · Fixed by #680
Closed

Use smoldot's database system in the extension #568

tomaka opened this issue Dec 9, 2021 · 1 comment · Fixed by #680

Comments

@tomaka
Copy link
Contributor

tomaka commented Dec 9, 2021

The extension should periodically call smoldotClient.databaseContent() for the hardcoded chains (Polkadot, Kusama, Rococo, Westend) and save the result in local storage.
When the extension is loaded, it should load the local storage and pass the content to the configuration passed to addChain.

Smoldot will not return any error if a bad database content is passed, so there's no need to worry about this.

@tomaka
Copy link
Contributor Author

tomaka commented Dec 14, 2021

Since smoldot 0.5.8 there's an optional parameter for databaseContent to provide the maximum size of the database.

wirednkod added a commit that referenced this issue Jan 25, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tonistiigi Tõnis Tiigi
…ot to local storage of browser; Fixes #568
wirednkod added a commit that referenced this issue Jan 25, 2022

Verified

This commit was signed with the committer’s verified signature. The key has expired.
tonistiigi Tõnis Tiigi
* Create alarm in extension in order to keep databaseContent from smoldot to local storage of browser; Fixes #568

* Address PR comments

* Address PR's comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment