Skip to content

Improve logic for retrieving runtime context for specific block. #862

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

Open
Zurcusa opened this issue Mar 27, 2025 · 0 comments
Open

Improve logic for retrieving runtime context for specific block. #862

Zurcusa opened this issue Mar 27, 2025 · 0 comments

Comments

@Zurcusa
Copy link
Collaborator

Zurcusa commented Mar 27, 2025

Currently we only store the runtime code in the DB during warp sync. We also store runtime instances in memory until a block is finalized. We need to improve 2 things:

  • Only create runtime instances when runtime code changes. (this might require splitting the trie storage from the runtime since we want to have separate in memory execution changes for non finalized blocks)
  • Make it possible to retrieve and create runtime instances for blocks in case they do not use the latest runtime code.
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

No branches or pull requests

2 participants