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

Large State values cache as part of the protocol #11924

Open
pugachAG opened this issue Aug 12, 2024 · 0 comments
Open

Large State values cache as part of the protocol #11924

pugachAG opened this issue Aug 12, 2024 · 0 comments

Comments

@pugachAG
Copy link
Contributor

pugachAG commented Aug 12, 2024

The idea is to reduce witness size by making validators have frequently used large state values (in practice those values are contract code) cached locally and then excluding them from the state witness storage proof. For more details see “Caching large state values” along with “Top N values as part of the Protocol” sections in the #10780 description.

Somewhat related to near/NEPs#556.

Expected work:

  • Evaluate potential witness size reduction to make sure it is still worth the effort
  • Chunk header changes to include values to cache
  • Mechanism for retrieving values from the nodes tracking the shard (similar to state sync, but for single state values)
  • Implementation + testing
  • NEP

Part of #11911.

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