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

Pullupstream/v0.5.0 rc4 #52

Merged
merged 252 commits into from
Feb 1, 2024
Merged

Pullupstream/v0.5.0 rc4 #52

merged 252 commits into from
Feb 1, 2024

Conversation

arnaubennassar
Copy link
Collaborator

@arnaubennassar arnaubennassar commented Jan 17, 2024

Instead of reviewing this PR code diff, which is absolutely insane, review the code diff vs zkevm-node. Instructions on docs/diff/diff.md included on this branch

dependabot bot and others added 30 commits November 6, 2023 17:50
…mez#2755)

Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.4.0 to 0.5.0.
- [Commits](golang/sync@v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…xPolygonHermez#2754)

Bumps [github.com/gorilla/websocket](https://github.com/gorilla/websocket) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/gorilla/websocket/releases)
- [Commits](gorilla/websocket@v1.5.0...v1.5.1)

---
updated-dependencies:
- dependency-name: github.com/gorilla/websocket
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ygonHermez#2758)

Bumps [github.com/fatih/color](https://github.com/fatih/color) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/fatih/color/releases)
- [Commits](fatih/color@v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/fatih/color
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…onHermez#2741) to develop branch (0xPolygonHermez#2766)

* Fix GlobalQueue/AccountQueue pool config (0xPolygonHermez#2738)

* Fix missing pool.Config parameter when creating a new Sequencer (0xPolygonHermez#2741)

* add gasprice update log

* log finalizer L1/L2 gas prices

* fix passing pool.Config to new sequencer

* remove temporary logs
* adapt ARR552 fixes from PR 0xPolygonHermez#2694
* add failfast to reduce the time on fail
* fix problem with update GER
* avoid duplicated code for vector_groupx
…rmez#2770)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.18.0.
- [Commits](golang/net@v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* state refactor

* enable tests

* fix tests
* fix problem if L1 block have 2 transactions
* improve tool performance

* update streamer lib

* fix

* fix

* fix query

* fix

* update streamer lib

* remove unused code

* fix makefile text

* fix makefile text
* implementation + tests

* linter

* Public HashLeafData
…ygonHermez#2722)

* etherman: read tx with blockHash and txIndex instead of txHash

Signed-off-by: jsvisa <[email protected]>

* etherman: use TransactionInBlock instead

Signed-off-by: jsvisa <[email protected]>

---------

Signed-off-by: jsvisa <[email protected]>
* fix tx size check

* fix tx size check

* refactor

* fix test

* fix test

* fix
…d L2 gas price (EGP disabled) (0xPolygonHermez#2777) (0xPolygonHermez#2805)

* added L2GasPriceSuggesterFactor config parameter to "simulate" estimated l2 gas price when egp is disabled

* fix L2GasPriceSuggesterFactor value in test config file

* fix L2GasPriceSuggesterFactor value in test config file

* update doc
…icate it when implement ETROG fork (0xPolygonHermez#2812)

* Isolate L1 event code in classes

Co-authored-by: Alonso <[email protected]>
… on successful transaction processing (0xPolygonHermez#2821)

* feature: storing LER in state.batch on successful transaction processing (0xPolygonHermez#2658)

Signed-off-by: Nikolay Nedkov <[email protected]>

* fix doc

---------

Signed-off-by: Nikolay Nedkov <[email protected]>
Co-authored-by: Nikolay Nedkov <[email protected]>
* Fix timestamp stored in exit_root table

* json doc
…olygonHermez#2824)

Bumps [github.com/0xPolygonHermez/zkevm-data-streamer](https://github.com/0xPolygonHermez/zkevm-data-streamer) from 0.1.11 to 0.1.13.
- [Release notes](https://github.com/0xPolygonHermez/zkevm-data-streamer/releases)
- [Commits](0xPolygon/zkevm-data-streamer@v0.1.11...v0.1.13)

---
updated-dependencies:
- dependency-name: github.com/0xPolygonHermez/zkevm-data-streamer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* smc

* rename matic to pol

* WIP

* Etherman + unit tests

* Addresses

* aggregator

* New genesis file

* new genesis

* state unit tests

* aggregator unit test

* sequencer uni tests

* pool unit test

* fix symLinks

* linter

* documentation

* Wip

* oldPolygonZkevmBridge

* fix e2e group 1

* linter

* docs

* Fix init Batch 1

* linter

* Fix e2e

* Fix forced

* Revert "Fix forced"

This reverts commit cfaa28b.

* wip

* fix forced e2e

* support genesis config with pointer to BatchData (0xPolygonHermez#2729)

* genesis fix

* forkID 6

* fix e2e forcedBatches again

* new smc

* genesis

* linter

* Fix e2e

* genesis

* new docker + genesis

* json doc

* fix e2e
* update LxLy changes


---------

Co-authored-by: Alonso Rodriguez <[email protected]>
…2836)

* moved l1_parallel files to l1_parallel_sync folder
* same solution as group 8
* wip

* new tracers

* update prover image

* update prover config

* remove unused method

* converters v2

* process batch v2

* update logs

* new errors

* refactor

* doc

* new zk counter

* update prover image

* refactor response v1 to look like v2

* fix test

* change prover image

* comment test

* comment test

* disable check superset batch transactions

* fix store txs

* fix store txs

* fix store txs

* fix store txs

* uncomment test

* change handleForcedTxsProcessResp

* change handleForcedTxsProcessResp

* fix ExecuteBatchV2

* revert executor image

* add l2 tx hash to process tx response

* udpate hashdb proto (0xPolygonHermez#2833)

* Refactor finalizer: remove use of f.processRequest, move getLastBatchNumAndOldStateRoot function (0xPolygonHermez#2834)

* remove f.processRequest. Move getLastBatchNumAndOldStateRoot to sequencer

* refactor get wip batch when starting sequencer/finalizer

* remove consts for numbers

* Refactor finalizer: remove sharedResourcesMux, reduce logs with info level (0xPolygonHermez#2835)

* remove f.processRequest. Move getLastBatchNumAndOldStateRoot to sequencer

* refactor get wip batch when starting sequencer/finalizer

* remove sharedResourcesMux. reduce logs with info level

---------

Co-authored-by: agnusmor <[email protected]>
* L1InfoTreeIndex is 32bits (new type L1InfoTreeIndexType)
dependabot bot added 2 commits January 22, 2024 11:00
…z#3105)

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.17.0...v1.18.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…rmez#3106)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.20.0.
- [Commits](golang/net@v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Copy link
Collaborator

@Stefan-Ethernal Stefan-Ethernal left a comment

Choose a reason for hiding this comment

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

Linter is complaining that there are some unused fields and functions in cmd/policy.go, although they are indeed used. Maybe we should try to suppress unused warning for that file?

Leaving some comments to consider.

docs/diff/diff.md Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Show resolved Hide resolved
dataavailability/dataavailability.go Show resolved Hide resolved
dataavailability/datacommittee/datacommittee.go Outdated Show resolved Hide resolved
cmd/run.go Show resolved Hide resolved
cmd/run.go Outdated Show resolved Hide resolved
state/pgstatestorage/pgstatestorage.go Outdated Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/datacommittee/datacommittee.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@Stefan-Ethernal Stefan-Ethernal left a comment

Choose a reason for hiding this comment

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

Linter is complaining that there are some unused fields and functions in cmd/policy.go, although they are indeed used. Maybe we should try to suppress unused warning for that file?

Leaving some comments to consider.

cmd/run.go Outdated Show resolved Hide resolved
cmd/run.go Outdated Show resolved Hide resolved
cmd/run.go Outdated Show resolved Hide resolved
cmd/run.go Show resolved Hide resolved
dataavailability/dataavailability.go Outdated Show resolved Hide resolved
dataavailability/datacommittee/datacommittee.go Outdated Show resolved Hide resolved
dataavailability/datacommittee/datacommittee_test.go Outdated Show resolved Hide resolved
dataavailability/datacommittee/datacommittee_test.go Outdated Show resolved Hide resolved
etherman/etherman.go Show resolved Hide resolved
etherman/etherman_test.go Outdated Show resolved Hide resolved
* wip

* Fix aggregator

* change name to UpgradeEtrogBatchNumber

* doc
return err
}
}
// // Allow forced batches in smart contract if disallowed

Choose a reason for hiding this comment

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

Is this a leftover?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had to upgrade contracts beyond the version that was used in the commit I'm pulling changes from upstream. This made me comment a bunch of code related to forced batches. In the next pulling this code should be uncommented with some chenges

arnaubennassar and others added 2 commits January 22, 2024 18:42
… number to L2 block. Several refactors (0xPolygonHermez#3118)

* add L2 block sequential process. Execute empty L2 block. Add tracking number to L2 block. Several refactors

* fix finalizer UT
@@ -35,18 +34,18 @@ type SequenceSender struct {
ethTxManager ethTxManager
etherman etherman
eventLog *event.EventLog
privKey *ecdsa.PrivateKey
da dataAbilitier

Choose a reason for hiding this comment

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

dataEnabler better?

Copy link

@vcastellm vcastellm left a comment

Choose a reason for hiding this comment

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

Aside from minor comments LGTM

@arnaubennassar arnaubennassar merged commit b423092 into develop Feb 1, 2024
17 checks passed
@Stefan-Ethernal Stefan-Ethernal deleted the pullupstream/v0.5.0-RC4 branch February 5, 2024 12:03
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.