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

Introduce Externalities interface. Utilize OverlayedChanges in new Ext type that fulfills Externalities #4465

Open
timwu20 opened this issue Jan 14, 2025 · 0 comments

Comments

@timwu20
Copy link
Contributor

timwu20 commented Jan 14, 2025

Issue Summary

From design doc:

Second, we create a new type that implements TrieState which combines the read-only TrieBackend of the block hash, as well as the OverlayedChanges type that can be extracted before calling AddBlock. This new TrieState will be passed into the runtime instance. This introduced implementation of TrieState is analagous to the substrate primitive sp_statemachine::ext::Ext and the analgous trait to the TrieState interface is sp_externalities::Externalities.

Acceptance Criteria

  • Introduce Externalities interface.
  • Implement Externalities in a new type analogous to Ext.
  • Unit tests

Other information and links

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

1 participant