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

feat(prover-sever): enhance error checking #20

Merged
merged 4 commits into from
Aug 23, 2023
Merged

Conversation

lightscale-luke
Copy link
Contributor

@lightscale-luke lightscale-luke commented Aug 22, 2023

  • 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.

bin/src/prove.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@fakedev9999 fakedev9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dongchangYoo dongchangYoo changed the title feat/mainnet-config feat(prover-sever): enhance error checking Aug 22, 2023
Copy link
Contributor

@fakedev9999 fakedev9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fakedev9999
Copy link
Contributor

@dongchangYoo For the commit message "feat(prover-server): increase request size to 32Mib" can you fix it to Mb?

@chokobole
Copy link
Contributor

Please change commit title feat: apply new values to params to feat(zkevm): apply new values to params

@chokobole
Copy link
Contributor

Could you add the reason why you increase request size to 32 Mib in commit body?

@dongchangYoo
Copy link
Contributor

1 MiB stands for 1,000,000 bytes. However, it would be more accurate to express it as MiB instead of Mib.

dongchangYoo and others added 4 commits August 23, 2023 13:27
- 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.
Copy link
Contributor

@dongchangYoo dongchangYoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@fakedev9999 fakedev9999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@chokobole chokobole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chokobole chokobole merged commit afdace3 into dev Aug 23, 2023
@chokobole chokobole deleted the feat/mainnet-config branch August 23, 2023 04:33
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

Successfully merging this pull request may close these issues.

4 participants