-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(prover-sever): enhance error checking #20
Conversation
lightscale-luke
commented
Aug 22, 2023
•
edited by dongchangYoo
Loading
edited by dongchangYoo
- update constants related to generate proof. (e.g., MAX_TXS, MAX_CALLDATA, etc)
- check if tx count from trace is smaller than MAX_TXS before starting proof creation.
- check if chain id in trace equals to prover's chain id.
- if requested with an incorrect prove type, prover returns error before initiating a trace object.
- detailed an error message in response.
7a35e31
to
0b06ba1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0b06ba1
to
95b5729
Compare
95b5729
to
4a934d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@dongchangYoo For the commit message "feat(prover-server): increase request size to 32Mib" can you fix it to Mb? |
Please change commit title |
Could you add the reason why you increase request size to 32 Mib in commit body? |
4a934d1
to
7fcecd3
Compare
7fcecd3
to
8c38443
Compare
8c38443
to
bd9da85
Compare
1 MiB stands for 1,000,000 bytes. However, it would be more accurate to express it as MiB instead of Mib. |
- bump default degree to 21 - increase values for MAX_TXS, MAX_CALLDATA and etc
- check if chain id in trace equals to prover's chain id. - check if num of txs in trace is less than MAX_TXS. - if requested with an incorrect prove type, prover returns error before initiating a trace object. - detailed an error message in response.
adjust the request size to process the JSON trace of a block containing 100 ERC-20 transfer transactions.
bd9da85
to
d750cff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM