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

Rework runtime service to directly perform runtime calls #1570

Merged
merged 24 commits into from
Jan 10, 2024

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jan 10, 2024

Close #1524

This PR refactors the runtime call "infrastructure" of the light client.

Beforehand, runtime calls suffered from many issues: the sync service would try to download call proofs multiple times but without giving a guarantee that the call proof is correct, the runtime service would have this awkward runtime access system, and the runtime call code was duplicated a couple of times throughout the node.

This PR fixes all of this by making the runtime service directly sends call proof requests using the network service, and directly execute runtime calls.

The runtime service is now much more clean, and can IMO be considered as having a stable API from now on.

@tomaka tomaka added this pull request to the merge queue Jan 10, 2024
Merged via the queue into smol-dot:main with commit cb2d18c Jan 10, 2024
22 checks passed
@tomaka tomaka deleted the issue-1524 branch January 10, 2024 19:14
tomaka added a commit to tomaka/smoldot that referenced this pull request Jan 11, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jan 11, 2024
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.

Rework runtime service to directly perform runtime calls
1 participant