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

Optimize the error message of state prove. #38

Open
LiRiu opened this issue Dec 28, 2023 · 1 comment
Open

Optimize the error message of state prove. #38

LiRiu opened this issue Dec 28, 2023 · 1 comment
Assignees

Comments

@LiRiu
Copy link
Contributor

LiRiu commented Dec 28, 2023

When the state proves that the block is too old, the execution will fail. The error message when it fails can be optimized to be more user-friendly.

Enc

  • zkgraph-lib: v1.0.1
  • zkgraph-cli: v1.0.0
  • zkgraph-api: v1.0.3

reproduce

  1. npm init zkgraph@latest
  2. Follow the guide to create a project of storage type.
  3. run command npm run compile && npm run exec -- 11882969
    error message which be throw as follow:
image
@lightmanM
Copy link
Contributor

https://www.notion.so/hyperoracle/State-prove-can-only-use-recent-blocks-5c83cf53a6c24d489e079cb07436f632
The issue is we do not know the block number limit here.
Displaying a user friendly message is still not enough since users would have to wait for a long time to see this message.

If it is limited by the rpc, we should consider alter solution.

@lightmanM lightmanM self-assigned this Jan 4, 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

No branches or pull requests

2 participants