Feat: Require l1Config Validation#10
Open
IdrisHanafi wants to merge 165 commits into0xPolygon:developfrom
Open
Feat: Require l1Config Validation#10IdrisHanafi wants to merge 165 commits into0xPolygon:developfrom
IdrisHanafi wants to merge 165 commits into0xPolygon:developfrom
Conversation
* Hotfix v0.1.4 to main (0xPolygon#2250) * fix concurrent web socket writes * fix eth_syncing * fix custom trace internal tx call error handling and update prover * add test to custom tracer depth issue; fix internal call error and gas used * fix custom tracer for internal tx with error and no more steps after it * remove debug code * Make max grpc message size configurable (0xPolygon#2179) * make max grpc message size configurable * fix state tests * fix tests * fix tests * get SequencerNodeURI from SC if empty and not IsTrustedSequencer * Optimize trace (0xPolygon#2183) * optimize trace * fix memory reading * update docker image * update prover image * fix converter * fix memory * fix step memory * fix structlogs * fix structlogs * fix structlogs * fix structlogs * fix structlogs * fix structlogs * fix structlogs * fix structlogs * update prover image * fix struclogs * fix memory size * fix memory size * fix memory size * refactor memory resize * refactor memory resize * move log for the best fitting tx (0xPolygon#2192) * fix load zkCounters from pool * remove unnecessary log.info * add custom tracer support to CREATES opcode without depth increase (0xPolygon#2213) * logs * fix getting stateroot from previous batch (GetWIPBatch) * logs * Fix GetWipBatch when previous last batch is a forced batch * fix forcedBatch trusted state * Revert "fix getting stateroot from previous batch (GetWIPBatch)" This reverts commit 860f0e7. * force GHA * add pool limits (0xPolygon#2189) * Hotfix/batch l2 data (0xPolygon#2223) * Fix BatchL2Data * Force GHA * remove failed txs from the pool limit check (0xPolygon#2233) * debug trace by batch number via external rpc requests (0xPolygon#2235) * fix trace batch remote requests in parallel limitation (0xPolygon#2244) * Added RPC.TraceBatchUseHTTPS config parameter * fix executor version --------- Co-authored-by: tclemos <[email protected]> Co-authored-by: tclemos <[email protected]> Co-authored-by: Toni Ramírez <[email protected]> Co-authored-by: agnusmor <[email protected]> Co-authored-by: agnusmor <[email protected]> Co-authored-by: Thiago Coimbra Lemos <[email protected]> * fix test * fix test --------- Co-authored-by: tclemos <[email protected]> Co-authored-by: tclemos <[email protected]> Co-authored-by: Toni Ramírez <[email protected]> Co-authored-by: agnusmor <[email protected]> Co-authored-by: agnusmor <[email protected]> Co-authored-by: Thiago Coimbra Lemos <[email protected]>
* effective GasPrice refactor * bugs fixes and finalizer tests fixes * fix typo * fix calculate effective gasprice percentage * fix test gas price
* effective gas price returned by the rpc in the receipt * linter
* bugfix: fixing l2blocks timestamp for the fist batch Signed-off-by: Nikolay Nedkov <[email protected]> * fix finalizer unit test --------- Signed-off-by: Nikolay Nedkov <[email protected]>
…ssword from etherman.Config that are not in use
…2200-add-documentation-for-node-config-file-2
* fix fea2scalar and gas used * suggestion * fix fea2scalar * suggestion
* fix pending tx when duplicate nonce * set pool.transaction.failed_reason to NULL when updating an existing tx * add more log details when adding tx to AddrQueue * fix query to add tx to the pool. Fix lint errors * change failed_reason for tx discarded due duplicate nonce
…2273) * Return a tx from the pool only if it is * fix TestGetTransactionByHash --------- Co-authored-by: agnusmor <[email protected]>
…gon#2200-add-documentation-for-node-config-file-2 Feature/0xPolygon#2200 generate json-schema + docs for node config file and network_custom
…t forkId is under 5. Signed-off-by: Nikolay Nedkov <[email protected]>
…eck-for-fork-id-to-skip-effectivePercentage improve: adding check to skip appending effectivePercentage if current forkId is under 5.
…om config param. Signed-off-by: Nikolay Nedkov <[email protected]>
…equencer-on-batch-num feat: adding functionality to stop sequencer on specific batch num from config param.
Signed-off-by: Nikolay Nedkov <[email protected]>
… log conversion (0xPolygon#2280) * fix and check order * linter
…t-for-X-Real-IP patch: adding print for X-Real-IP in JSON-RPC
Updated README
Updated README
Fix wrong image names in docker-compose.yml
Collaborator
|
@IdrisHanafi sorry for taking long time to check this PR. I think it makes sense, but since it's not related to the CDK / Validium, I'd suggest to open this PR on the upstream repo so we can all benefit from it
Actually this is a valid point, not sure if there is such a situation where the network config file is required but not the L1 config in particular. TBH, if such a case exists, it's most likely a poor implementation. But anyway, I do agree that if the config is wrong the app would crash quite soon actually |
…duration Feature/marshal types duration
Pullupstream/v0.3.0
8f4596d to
9711a4d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What's new? and Motivation
The current approach would allow for empty L1 configs that are required for important aspects. Instead of allowing the code to run and use default type values, we should enforce the values to be set.
For example, let's assume the following
l1Configingenesis.json(note: missingpolygonZkEVMGlobalExitRootAddressvalue and incorrectly spelledsupernets2Address):The synchronizer will continue to poll for smart contract logs and use default values of
0x0000000000000000000000000000000000000000for the addresses:This will obviously return nothing and cause a lot of issues such as bridging, etc. In other words, filter queries in
etherman.go(such as this) will not function properly.Makefileand ran the formatterTesting
and running in a devnet without a valid
l1Config:Open Question
This is just a small example of where the use case of enforcing the L1 values is required.
Future Tasks
If this is a feature to be merged, I suspect the following will have to be done:
zkevm-noderepo