-
Notifications
You must be signed in to change notification settings - Fork 0
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: Validium mode #6
Conversation
0357e20
to
7fe7979
Compare
* Set and to 0 in * Set to 0 in * change pubdata constants to 0 * Comment revert * Comment check on operator overhead --------- Co-authored-by: Ivan Litteri <ivanlitteri@Ivans-MacBook-Pro.local>
@@ -90,7 +91,8 @@ uint256 constant BATCH_OVERHEAD_L2_GAS = $(BATCH_OVERHEAD_L2_GAS); | |||
uint256 constant BATCH_OVERHEAD_L1_GAS = $(BATCH_OVERHEAD_L1_GAS); | |||
|
|||
/// @dev The equivalent in L1 pubdata of L1 gas used for working with L1 | |||
uint256 constant BATCH_OVERHEAD_PUBDATA = BATCH_OVERHEAD_L1_GAS / L1_GAS_PER_PUBDATA_BYTE; | |||
// uint256 constant BATCH_OVERHEAD_PUBDATA = BATCH_OVERHEAD_L1_GAS / L1_GAS_PER_PUBDATA_BYTE; | |||
uint256 constant BATCH_OVERHEAD_PUBDATA = 0; |
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.
I'm not sure it's correct, because we still store some data.
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.
This was set to 0 because of the 0 division, what should we set it to? Can you elaborate more on what data are we still storing?
@@ -364,7 +370,7 @@ contract ExecutorFacet is Base, IExecutor { | |||
|
|||
function _verifyProof(uint256[] memory proofPublicInput, ProofInput calldata _proof) internal view { | |||
// We can only process 1 batch proof at a time. | |||
require(proofPublicInput.length == 1, "t4"); | |||
require(_proof.serializedProof.length == 1, "t4"); |
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.
why?
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.
We can change it and check that the results are still the same
Superseded by #13 |
What ❔
Why ❔
Checklist