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

hdp-provider crate to be stateful #80

Open
rkdud007 opened this issue Jun 5, 2024 · 0 comments
Open

hdp-provider crate to be stateful #80

rkdud007 opened this issue Jun 5, 2024 · 0 comments
Labels
C-provider Codebase to provider implementation enhancement New feature or request P-middle Middle priority, for near future

Comments

@rkdud007
Copy link
Member

rkdud007 commented Jun 5, 2024

Context

hdp-provider crate is responsible to get request and fetch the proofs of MPT/MMR. As we have introduced caching mechanism for fetching proofs, suggest to have this data structure implementation in provider crate, so that we can interact sn-mpt via library call during processing provider step.

This gives two benefit:

  • utilize state (db) on preprocessor, to make step spilt not get limited from stateless environment like now
  • we don't need unnecessary instance or IO call to make sn-mpt into seperate server deployment.
@rkdud007 rkdud007 added the enhancement New feature or request label Jun 5, 2024
@rkdud007 rkdud007 added the I-module Query interface of module label Jun 5, 2024
@rkdud007 rkdud007 added P-middle Middle priority, for near future C-provider Codebase to provider implementation and removed I-module Query interface of module labels Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-provider Codebase to provider implementation enhancement New feature or request P-middle Middle priority, for near future
Projects
None yet
Development

No branches or pull requests

1 participant