-
Notifications
You must be signed in to change notification settings - Fork 124
Feat: Require l1Config Validation #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
base: develop
Are you sure you want to change the base?
Feat: Require l1Config Validation #10
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 <thiago@polygon.technology> Co-authored-by: tclemos <thiago@iden3.com> Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com> Co-authored-by: agnusmor <agnusmor@gmail.com> Co-authored-by: agnusmor <100322135+agnusmor@users.noreply.github.com> Co-authored-by: Thiago Coimbra Lemos <tclemos@users.noreply.github.com> * fix test * fix test --------- Co-authored-by: tclemos <thiago@polygon.technology> Co-authored-by: tclemos <thiago@iden3.com> Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com> Co-authored-by: agnusmor <agnusmor@gmail.com> Co-authored-by: agnusmor <100322135+agnusmor@users.noreply.github.com> Co-authored-by: Thiago Coimbra Lemos <tclemos@users.noreply.github.com>
* 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 <nikolai_nedkov@yahoo.com> * fix finalizer unit test --------- Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
…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 <agnusmor@gmail.com>
…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 <nikolai_nedkov@yahoo.com>
…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 <nikolai_nedkov@yahoo.com>
…equencer-on-batch-num feat: adding functionality to stop sequencer on specific batch num from config param.
Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
… 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
|
@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
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