Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

cherry-pick: fixing L2 Reorg check. #2588

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

Psykepro
Copy link
Contributor

Related #2586.

What does this PR do?

Change L2 Reorg Count fetch check a non-fatal error

Reviewers

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
@Psykepro Psykepro requested a review from agnusmor as a code owner September 21, 2023 15:06
@Psykepro Psykepro self-assigned this Sep 21, 2023
@cla-bot cla-bot bot added the cla-signed label Sep 21, 2023
@Psykepro Psykepro changed the title cherr-pick: fixing L2 Reorg check. cherry-pick: fixing L2 Reorg check. Sep 21, 2023
@ToniRamirezM ToniRamirezM added cherry-picked Content has been cherry-picked into a higher version branch cherry-pick Content comes from a previous version branch and removed cherry-picked Content has been cherry-picked into a higher version branch labels Sep 21, 2023
@ToniRamirezM ToniRamirezM merged commit 630e196 into develop Sep 21, 2023
@ToniRamirezM ToniRamirezM deleted the cherry-pick/l2reorg-check branch September 21, 2023 18:05
KamiD added a commit to okx/xlayer-node that referenced this pull request Dec 18, 2023
* improve: adding config param ReadLimit in bytes for websockets, and using it on the websocket connection.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* build(deps): bump github.com/jackc/pgconn from 1.14.0 to 1.14.1 (#2312)

Bumps [github.com/jackc/pgconn](https://github.com/jackc/pgconn) from 1.14.0 to 1.14.1.
- [Changelog](https://github.com/jackc/pgconn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgconn/compare/v1.14.0...v1.14.1)

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

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

* build(deps): bump github.com/rubenv/sql-migrate from 1.5.1 to 1.5.2 (#2313)

Bumps [github.com/rubenv/sql-migrate](https://github.com/rubenv/sql-migrate) from 1.5.1 to 1.5.2.
- [Commits](https://github.com/rubenv/sql-migrate/compare/v1.5.1...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/rubenv/sql-migrate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* remove unnecessary config values and added RPC.WebSockets.ReadLimit default value unit test

* add jRPC ReadLimit log error handling and e2e test

* Release/v0.2.0 to develop (#2322)

Merge release/0.2.0

* build(deps): bump github.com/go-git/go-git/v5 from 5.7.0 to 5.8.1 (#2332)

Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.7.0 to 5.8.1.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.7.0...v5.8.1)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#2331)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.2 to 1.57.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.2...v1.57.0)

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

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

* improve: Add IP and ZKCounter Validation, Refactor Batch Configs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing comments

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing rebase errors

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: moving BatchConfig to state package

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge/v0.2.1 into develop (#2334)

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix estimate gas nonce computation to deal with sequencer concurrency (#2204)

* Update README diagram (#2303)

Update README diagram

* fixing state_db env vars

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge Release/v0.2.2 into develop  (#2353)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* fix conflict

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* build(deps): bump golang.org/x/net from 0.12.0 to 0.13.0 (#2354)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.13.0)

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

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

* build(deps): bump go.uber.org/zap from 1.24.0 to 1.25.0 (#2361)

Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Merge v0.2.4 (includes v0.2.3) into Develop (#2376)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* bugfix: fixing place where we need to increment the wg per address for pending txs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Store batchL2Data when the batch is opened (#2358)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager (#2360)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager

* add logs, fix config

* update config file documentation

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* bugfix: attaching missing TxTracker.From to pending txs to store for forced batches. (#2365)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* improve: adding logs (#2373)

* improve: adding logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs #2

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing finalizer's  handling. (#2375)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Adaptation to new HashDB interface (#2367)

* change hashdb go package

* new hashdb interface

* aggregator pb refactor

* new prover image

* change prover config

* update prover image

* update to latest proto and prover image

* build(deps): bump golang.org/x/net from 0.13.0 to 0.14.0 (#2380)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.14.0)

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

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

* fix script (#2383)

* avoid double unlock in sequencer AddTxTracker (#2285)

* Fix typos (#2267)

* fix http request instance null for websocket requests (#2385)

* Feature/2362 state use field batch l2data of processing context v2 (#2390)

* close #2390:  removed field encodedTxs from func ProcessAndStoreClosedBatch

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.0 to 1.12.1 (#2402)

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.12.0...v1.12.1)

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

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

* test: adding benchmark test script for uniswap

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* test: fixing things and adding make entry for the e2e test.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fix ws subscribe to get filtered log notifications (#2396)

* bugfix: adding back the 'State' section in test.node.config.toml to fix env vars resolving for 'permisionless-node'.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge/v0.2.5 (#2413)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* bugfix: fixing place where we need to increment the wg per address for pending txs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Store batchL2Data when the batch is opened (#2358)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager (#2360)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager

* add logs, fix config

* update config file documentation

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* bugfix: attaching missing TxTracker.From to pending txs to store for forced batches. (#2365)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* improve: adding logs (#2373)

* improve: adding logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs #2

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing finalizer's  handling. (#2375)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* change hashdb go package

* new hashdb interface

* aggregator pb refactor

* new prover image

* change prover config

* update prover image

* update to latest proto and prover image

* Refactor nonce calculation for addQueue (#2382)

* refactor nonce

* fix

* fix

* fix script

* check to avoid data inconsistencies (#2387)

* check to avoid data inconsistencies

* check batchL2Data

* names in the logs

* Refactor: avoid delete addrQueue if it has pending txs to store (#2391)

* refactor delete addrQueue only if not pending txs to store

* fix finalizer test

* fix olsStateRoot in handleForcedTxsProcessResp

* Update sequencer/addrqueue.go

Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

---------

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

* Sort txs in worker by gasPrice (remove efficiency sort) (#2392)

* Sort txs in worker by GasPrice (remove efficiency sort)

* update config docs

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* use useMainExecGenerated (#2393)

* Fix store forced batch tx (#2394)

* l2coinbase (#2400)

* l2coinbase

* add default config

* add support  config fields that are common.Address

* docs

* prover image

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* merge v0.2.5 into develop

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.1 to 1.12.2 (#2407)

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.12.1...v1.12.2)

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

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

* fix safe and finalized l2 block to consider l1 safe and finalized blocks respectively (#2245)

* improve pre-EIP155 check (#2327)

* benmchmark: improving benchmark tests, adding main script to do all steps for setup, metrics collection and printing, and adding docs.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Makefile improvements (#2419)

* config: updating RPC.Websockets.ReadLimit=80MB

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* docs: generating docs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fix: fixing config test values for 'RPC.WebSockets.ReadLimit'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: adding config params and check for batch requests for enabling/disabling (disabled by default) and max requests count limit.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* updating bytes sent in

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* updating 'RPC.WebSockets.ReadLimit=100MB'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* update doc (#2433)

* refactoring and adding tests to batch requests

* linter fixes

* build(deps): bump github.com/google/uuid from 1.3.0 to 1.3.1 (#2436)

Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.3.0...v1.3.1)

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

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

* fixing check for pending txs and adding informational print for gas metrics.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fix and add tests for safe and finalized l2 blocks (#2424)

* review code owners to match with the current team structure (#2435)

* fix: fixing usage of num-ops param in 'benchmarks/sequencer/scripts'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing print in 'benchmarks/sequencer/../metrics'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Remove actual user names from PR template (#2470)

* remove actual user names from PR template

* remove actual user names from PR template

* fix postgres version to 15 in docker compose files (#2471)

* fix postgres version to 15 in docker compose files

* fix postgres version to 15 in docker compose files

* fix postgres version to 15 in docker compose files

* Update production-setup.md

* improve: improving scripts.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge v0.3.0 into develop (#2474)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* bugfix: fixing place where we need to increment the wg per address for pending txs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Store batchL2Data when the batch is opened (#2358)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager (#2360)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager

* add logs, fix config

* update config file documentation

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* bugfix: attaching missing TxTracker.From to pending txs to store for forced batches. (#2365)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* improve: adding logs (#2373)

* improve: adding logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs #2

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing finalizer's  handling. (#2375)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* change hashdb go package

* new hashdb interface

* aggregator pb refactor

* new prover image

* change prover config

* update prover image

* update to latest proto and prover image

* Refactor nonce calculation for addQueue (#2382)

* refactor nonce

* fix

* fix

* fix script

* check to avoid data inconsistencies (#2387)

* check to avoid data inconsistencies

* check batchL2Data

* names in the logs

* Refactor: avoid delete addrQueue if it has pending txs to store (#2391)

* refactor delete addrQueue only if not pending txs to store

* fix finalizer test

* fix olsStateRoot in handleForcedTxsProcessResp

* Update sequencer/addrqueue.go

Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

---------

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

* Sort txs in worker by gasPrice (remove efficiency sort) (#2392)

* Sort txs in worker by GasPrice (remove efficiency sort)

* update config docs

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* use useMainExecGenerated (#2393)

* Fix store forced batch tx (#2394)

* l2coinbase (#2400)

* l2coinbase

* add default config

* add support  config fields that are common.Address

* docs

* prover image

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* Check flushID != 0 (#2406)

* Show tx.GasPrice in the worker logs (instead of tx.Cost) (#2416)

* Check flushID != 0 in Sequencer (#2415)

* check flushid != 0 in sequencer

* Use f.halt instead of log.Fatal to report that flushid is 0

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>

* fix lint

---------

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>

* update config params for Prover v2.1.0 (#2418)

* cherry-pick #2385 and #2396 from develop into v0.2.6 (#2412)

* fix http request instance null for websocket requests (#2385)

* fix ws subscribe to get filtered log notifications (#2396)

* new block endpoints and improvements to batch endpoint (#2411)

* Add forced batches tx to addrQueue (#2398)

* add forced batches tx to addrQueue

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* refactor

* fix test

* fix test

* fix test

* fix test

* fix test

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixe hash and from

* fixe hash and from

* fixe hash and from

* fixe hash and from

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* improve tests

* improve tests

* improve tests

* improve tests

* improve tests

* refactor

* refactor

* improve logs

* bugifx: adding missing tx.BreakEvenGasPrice nil check

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Sync halt (#2428)

* cherry-pick #2245 and #2424 from develop into v0.2.6 (#2447)

* fix safe and finalized l2 block to consider l1 safe and finalized blocks respectively (#2245)

* fix and add tests for safe and finalized l2 blocks (#2424)

* New executor errors refactor (#2438)

* wip

* new errors

* retry on executor db error

* new prover images

* fix comment

* update hasdh proto and prover images

* handle excutor db error

* update test

* update test

* update test

* update test

* refactor error check in unsigned tx

* Reprocess full batch in parallel (sanity check) (#2425)

* reprocess full batch in parallel (sanity check)

* update doc

* update reprocessFullBatch logs

* Speed up deleting batches from stateDB creating an index for state.receipt.block_num (#2457)

* receipt deletion index

* receipt deletion index

* Feature/#2429 fork id improvement (#2450)

* db table + tests

* GetForks func modified to get them by range

* Sync forkID

* forkIDIntervals and forkID genesis

* linter

* docs

* Avoid resetForkID in trustedNode

* fix test group 9

* suggestions

* doc and mocks

* fix check storedFlushID (#2458)

* remove stored flush id 0 (#2459)

* Feature/#2403 snap (#2404)

* Path snapshot command

* restore

* readme

* options used by dbeaver

* #2429_forkID_improvement: #2429_forkID_improvement:

* fix

* fix postgres version to v15

* fix permissionless init script

* bugfix: removing measuring of metrics from async batch reprocessing f… (#2461)

* bugfix: removing measuring of metrics from async batch reprocessing for executor.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing unit tests

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* update prover images (#2473)

* Update production-setup.md

* update doc

* fix jsonrpc tests

* fixes state.db

* update doc again

* remove obsolete config

* docs one more time...

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix state configuration (#2478)

* Fix state configuration

* Remove ResourceWeights unnecessary configuration

* linter

* add http request content limit (#2448)

* remove http call from trace by batch number; fix batch by number not found  error (#2446)

* reverting to working version of the scripts

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: adding handling of odd-length hex strings in .

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* benchmarks: removing the need to get sequencer IP from aws.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* tool to rerun batches (#2498)

* tool to rerun batches

* Cherrypick/fix convert process batch response (#2479)

* remove need of decoded txs to process a batch response

* fix

* fix typo

* fix

* fix fb convert handling

* handle invalid rlp error

* improve logs

* another fix

* change IsStateRootChanged

* fix INVALID_RLP

* new rlp error

---------

Co-authored-by: Alonso <ARR551@protonmail.com>

* build(deps): bump golang.org/x/net from 0.14.0 to 0.15.0 (#2513)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/net/compare/v0.14.0...v0.15.0)

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

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

* build(deps): bump google.golang.org/grpc from 1.57.0 to 1.58.0 (#2520)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.58.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.57.0...v1.58.0)

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

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

* build(deps): bump github.com/invopop/jsonschema from 0.7.0 to 0.8.0 (#2519)

* build(deps): bump github.com/invopop/jsonschema from 0.7.0 to 0.8.0

Bumps [github.com/invopop/jsonschema](https://github.com/invopop/jsonschema) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/invopop/jsonschema/compare/v0.7.0...v0.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* new jsonschema-0.8.0 produce a difference for genesis[].storage because is a map

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* Cherrypick/v0.3.1 to develop (#2516)

* fix error detection (#2506)

* fix error detection

* linter

* fix rom level error while syncing (#2507)

* Fix forkID (#2511)

* fix forkID reset

* linter

* sync logs

* leave blockNum column

* update on conflict

* logs

* fix unit test

* Remove prover ports (aggregator) from docker-compose (#2525)

* Fix rom ooc error detection (#2527) (#2529)

* Fix rom ooc error detection

* remove check

* fix logger (#2530)

* Use ZKEVM_NETWORK variable to specify location of config files in docker compose file (#2524)

* Use ZKEVM_NETWORK variable to specify location of config files in docker-compose

* fix config path in step 7.1

* rename ZKEVM_NODE_STATE_DB_DATA_DIR to ZKEVM_NODE_STATEDB_DATA_DIR

* improve the way the jRPC server log errors when returning an error response to the user (#2485)

* add jRPC support to eth_coinbase (#2500)

* only RPC component will refresh blocked addresses (#2501)

* fix merges (#2537)

* build(deps): bump github.com/go-git/go-git/v5 from 5.8.1 to 5.9.0 (#2541)

Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.8.1 to 5.9.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.8.1...v5.9.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* avoid halt syncronization in permissionless nodes (#2536) (#2545)

* avoid halt syncronization in permissionless nodes

* logs

* logs with %d

* print always the batchL2Data

* Fix nil evaluation (#2544) (#2548)

* fix nil evaluation

* fix

* fix

* build(deps): bump google.golang.org/grpc from 1.58.0 to 1.58.1 (#2551)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.58.0 to 1.58.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.0...v1.58.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.2 to 1.13.0 (#2540)

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.2 to 1.13.0

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.12.2...v1.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* return the gas price in base 16, not base 10

* change e2e call tracer test to conditionally validate revert reason

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Toni Ramírez <toni@polygon.technology>
Co-authored-by: tclemos <thiago@polygon.technology>

* build(deps): bump go.uber.org/zap from 1.25.0 to 1.26.0 (#2550)

Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.25.0...v1.26.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* L1 synchronization in parallel (#2504)

* L1 synchronization in parallel: merged feature/#2371-synchronizer_optimization

* build(deps): bump github.com/ethereum/go-ethereum from 1.13.0 to 1.13.1 (#2554)

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.13.0...v1.13.1)

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

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

* renamed test function to remove underscore (#2557)

* add unit and e2e tests for big batch l2 data (#2539)

* Enable gasless txs on L2 (#2560) (#2565)

Enable gasless txs on L2

* Synchronizer L1 parallel:  improve context usage (#2568)

* + #2567: improve context, add unittest, remove unused code, improved logs

* Fix Makefile: should start synchronizer before eth-tx-manager (#2553)

* Fix Makefile: start synchronizer before eth-tx-manager

* increase sleep seconds for db migration

* fix trace default values and add condition to define which trace should be returned (#2576)

* Synchronizer L1 parallel: fix stuck due error on request (#2579)

* + limit pending results to give to consumer

* improve: improving benchmark scripts.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing L2 Reorg check. (#2588)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Synchronizer L1 parallel: add control between retries to avoid spamming (#2585)

* +limit retries in time  for RollupInfo

* DB index (#2562) (#2570)

* build(deps): bump google.golang.org/grpc from 1.58.1 to 1.58.2 (#2592)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.58.1 to 1.58.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.1...v1.58.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Data Streamer (#2569)

* Data Streamer

* fix encode functions

* updates

* build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0 (#2594)

Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.9.5 to 1.10.0.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](https://github.com/spf13/afero/compare/v1.9.5...v1.10.0)

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

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

* fix deadlock on L1 synchronization when appears a ForkId that need a rewind (#2600)

* build(deps): bump github.com/ethereum/go-ethereum from 1.13.1 to 1.13.2 (#2599)

* build(deps): bump github.com/ethereum/go-ethereum from 1.13.1 to 1.13.2

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.13.1...v1.13.2)

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

Signed-off-by: dependabot[bot] <support@github.com>

* fix doc

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alonso <ARR551@protonmail.com>

* build(deps): bump github.com/prometheus/client_golang …
zjg555543 added a commit to okx/xlayer-node that referenced this pull request Mar 5, 2024
* build(deps): bump google.golang.org/grpc from 1.56.1 to 1.56.2 (#2265)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.1 to 1.56.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.1...v1.56.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump github.com/holiman/uint256 from 1.2.2 to 1.2.3 (#2290)

Bumps [github.com/holiman/uint256](https://github.com/holiman/uint256) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/holiman/uint256/releases)
- [Commits](https://github.com/holiman/uint256/compare/v1.2.2...v1.2.3)

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

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

* improve: adding config param ReadLimit in bytes for websockets, and using it on the websocket connection.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* build(deps): bump github.com/jackc/pgconn from 1.14.0 to 1.14.1 (#2312)

Bumps [github.com/jackc/pgconn](https://github.com/jackc/pgconn) from 1.14.0 to 1.14.1.
- [Changelog](https://github.com/jackc/pgconn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgconn/compare/v1.14.0...v1.14.1)

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

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

* build(deps): bump github.com/rubenv/sql-migrate from 1.5.1 to 1.5.2 (#2313)

Bumps [github.com/rubenv/sql-migrate](https://github.com/rubenv/sql-migrate) from 1.5.1 to 1.5.2.
- [Commits](https://github.com/rubenv/sql-migrate/compare/v1.5.1...v1.5.2)

---
updated-dependencies:
- dependency-name: github.com/rubenv/sql-migrate
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* remove unnecessary config values and added RPC.WebSockets.ReadLimit default value unit test

* add jRPC ReadLimit log error handling and e2e test

* Release/v0.2.0 to develop (#2322)

Merge release/0.2.0

* build(deps): bump github.com/go-git/go-git/v5 from 5.7.0 to 5.8.1 (#2332)

Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.7.0 to 5.8.1.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.7.0...v5.8.1)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* build(deps): bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#2331)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.56.2 to 1.57.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.56.2...v1.57.0)

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

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

* improve: Add IP and ZKCounter Validation, Refactor Batch Configs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing comments

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing rebase errors

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: moving BatchConfig to state package

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge/v0.2.1 into develop (#2334)

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix estimate gas nonce computation to deal with sequencer concurrency (#2204)

* Update README diagram (#2303)

Update README diagram

* fixing state_db env vars

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge Release/v0.2.2 into develop  (#2353)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* fix conflict

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* build(deps): bump golang.org/x/net from 0.12.0 to 0.13.0 (#2354)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.13.0)

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

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

* build(deps): bump go.uber.org/zap from 1.24.0 to 1.25.0 (#2361)

Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Merge v0.2.4 (includes v0.2.3) into Develop (#2376)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* bugfix: fixing place where we need to increment the wg per address for pending txs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Store batchL2Data when the batch is opened (#2358)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager (#2360)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager

* add logs, fix config

* update config file documentation

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* bugfix: attaching missing TxTracker.From to pending txs to store for forced batches. (#2365)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* improve: adding logs (#2373)

* improve: adding logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs #2

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing finalizer's  handling. (#2375)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Adaptation to new HashDB interface (#2367)

* change hashdb go package

* new hashdb interface

* aggregator pb refactor

* new prover image

* change prover config

* update prover image

* update to latest proto and prover image

* build(deps): bump golang.org/x/net from 0.13.0 to 0.14.0 (#2380)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/net/compare/v0.13.0...v0.14.0)

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

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

* fix script (#2383)

* avoid double unlock in sequencer AddTxTracker (#2285)

* Fix typos (#2267)

* fix http request instance null for websocket requests (#2385)

* Feature/2362 state use field batch l2data of processing context v2 (#2390)

* close #2390:  removed field encodedTxs from func ProcessAndStoreClosedBatch

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.0 to 1.12.1 (#2402)

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.12.0...v1.12.1)

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

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

* test: adding benchmark test script for uniswap

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* test: fixing things and adding make entry for the e2e test.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fix ws subscribe to get filtered log notifications (#2396)

* bugfix: adding back the 'State' section in test.node.config.toml to fix env vars resolving for 'permisionless-node'.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge/v0.2.5 (#2413)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* bugfix: fixing place where we need to increment the wg per address for pending txs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Store batchL2Data when the batch is opened (#2358)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager (#2360)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager

* add logs, fix config

* update config file documentation

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* bugfix: attaching missing TxTracker.From to pending txs to store for forced batches. (#2365)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* improve: adding logs (#2373)

* improve: adding logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs #2

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing finalizer's  handling. (#2375)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* change hashdb go package

* new hashdb interface

* aggregator pb refactor

* new prover image

* change prover config

* update prover image

* update to latest proto and prover image

* Refactor nonce calculation for addQueue (#2382)

* refactor nonce

* fix

* fix

* fix script

* check to avoid data inconsistencies (#2387)

* check to avoid data inconsistencies

* check batchL2Data

* names in the logs

* Refactor: avoid delete addrQueue if it has pending txs to store (#2391)

* refactor delete addrQueue only if not pending txs to store

* fix finalizer test

* fix olsStateRoot in handleForcedTxsProcessResp

* Update sequencer/addrqueue.go

Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

---------

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

* Sort txs in worker by gasPrice (remove efficiency sort) (#2392)

* Sort txs in worker by GasPrice (remove efficiency sort)

* update config docs

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* use useMainExecGenerated (#2393)

* Fix store forced batch tx (#2394)

* l2coinbase (#2400)

* l2coinbase

* add default config

* add support  config fields that are common.Address

* docs

* prover image

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* merge v0.2.5 into develop

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.1 to 1.12.2 (#2407)

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.12.1 to 1.12.2.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.12.1...v1.12.2)

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

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

* fix safe and finalized l2 block to consider l1 safe and finalized blocks respectively (#2245)

* improve pre-EIP155 check (#2327)

* benmchmark: improving benchmark tests, adding main script to do all steps for setup, metrics collection and printing, and adding docs.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Makefile improvements (#2419)

* config: updating RPC.Websockets.ReadLimit=80MB

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* docs: generating docs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fix: fixing config test values for 'RPC.WebSockets.ReadLimit'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: adding config params and check for batch requests for enabling/disabling (disabled by default) and max requests count limit.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* updating bytes sent in

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* updating 'RPC.WebSockets.ReadLimit=100MB'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* update doc (#2433)

* refactoring and adding tests to batch requests

* linter fixes

* build(deps): bump github.com/google/uuid from 1.3.0 to 1.3.1 (#2436)

Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.3.0...v1.3.1)

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

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

* fixing check for pending txs and adding informational print for gas metrics.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fix and add tests for safe and finalized l2 blocks (#2424)

* review code owners to match with the current team structure (#2435)

* fix: fixing usage of num-ops param in 'benchmarks/sequencer/scripts'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing print in 'benchmarks/sequencer/../metrics'

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Remove actual user names from PR template (#2470)

* remove actual user names from PR template

* remove actual user names from PR template

* fix postgres version to 15 in docker compose files (#2471)

* fix postgres version to 15 in docker compose files

* fix postgres version to 15 in docker compose files

* fix postgres version to 15 in docker compose files

* Update production-setup.md

* improve: improving scripts.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Merge v0.3.0 into develop (#2474)

* fix null effective_percentage

* fix forkID calculation

* fix script

* generate json-schema + docs for node config file and network_custom

* fix unittest

* Hotfixv0.1.4 to v0.2.0 (#2255)

* Hotfix v0.1.4 to main (#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  (#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 (#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 (#2192)

* fix load zkCounters from pool

* remove unnecessary log.info

* add custom tracer support to CREATES opcode without depth increase (#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 860f0e74016219daf81f96b76f6b25609e1c66fd.

* force GHA

* add pool limits (#2189)

* Hotfix/batch l2 data (#2223)

* Fix BatchL2Data

* Force GHA

* remove failed txs from the pool limit check (#2233)

* debug trace by batch number via external rpc requests (#2235)

* fix trace batch remote requests in parallel limitation (#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+fixes (#2247)

* effective GasPrice refactor

* bugs fixes and finalizer tests fixes

* fix typo

* fix calculate effective gasprice percentage

* fix test gas price

* Fix/#2257 effective gas price receipt (#2258)

* effective gas price returned by the rpc in the receipt

* linter

* bugfix: fixing l2blocks timestamp for the fist batch (#2260)

* 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>

* add more comments, and removed fields PrivateKeyPath and PrivateKeyPassword from etherman.Config that are not in use

* add info to git action

* add info to git action

* fix github action

* updated comments

* updated comments

* Fix/#2263 gas used (#2264)

* fix fea2scalar and gas used

* suggestion

* fix fea2scalar

* suggestion

* Fix pending tx when duplicate nonce (#2270)

* 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

* Only return a tx from the pool if tx is in pending status (#2273)

* Return a tx from the pool only if it is

* fix TestGetTransactionByHash

---------

Co-authored-by: agnusmor <agnusmor@gmail.com>

* fix documentation with  config file

* improve: adding check to skip appending effectivePercentage if current forkId is under 5.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fiex effectiveGasprice unsigned txs with forkId lower than 5 (#2278)

* feat: adding functionality to stop sequencer on specific batch num from config param.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* patch: adding print for X-Real-IP in JSON-RPC

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix checkIfSynced (#2289)

* [Rehashing] Check logs order and fix blockhash and blockNumber in the log conversion (#2280)

* fix and check order

* linter

* flushID synchronizer (#2287)

* FlushID in synchronizer

* linter

* fix logs

* commnets

* executor error refactor (#2299)

* handle invalid rlp ROM error (#2297)

* add maxL2GasPrice (#2294)

* add maxL2GasPrice

* fix

* fix

* add test

* document parameter

* update description

* Error refactor (#2302)

* error refactor

* refactor

* Fix replaced tx as failed when duplicated nonce (#2308)

* Fix UpdateTxStatus for replacedTx

* Fix adding tx with same nonce on AddrQueue

* log reprocess need (#2309)

* log reprocess need

* Update finalizer.go

* Feature/2300 synchronizer detect if executor restart (#2306)

* detect if executor restarts and stop synchonizer

* Update prover images (#2311)

* update prover image

* update prover images

* change executor param

* Update testnet.prover.config.json

* Update test.permissionless.prover.config.json

* Update test.prover.config.json

* Update public.prover.config.json

* prover params

* prover params

* prover params

* update prover images

* add doc, and fix dockers to be able to use snap/restore feature (#2315)

* add doc, and fix dockers to be able to use snap/restore feature

* add doc for snap/restore feature

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* Update docker-compose.yml

* Update docker-compose.yml

* do not add tx to the pool in case err != nil

* do not add tx into the pool if a fatal error in the executor happens during pre execution

* fix dbMultiWriteSinglePosition config value

* workarround for the error error closing batch

* workarround for the error error closing batch

* workarround for the error error closing batch

* workaround for the error of closing batch, another case

* `Worker`'s `AddTxTracker` Bug Fix (#2343)

* bugfix: Resolve  Function Bug in Worker Module

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: improving the wait for pending txs to be for only the txs for the current address.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* rename config files (#2349)

* fix closing batch + logs (#2348)

* fix closing batch + logs

* fix

* log description

* typo errors

* fix error: failed to store transactions for batch due to duplicate key

* test

* typo

* Update README.md

* Update release.yml

* bugfix: fixing place where we need to increment the wg per address for pending txs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Store batchL2Data when the batch is opened (#2358)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager (#2360)

* add GasPriceMarginFactor and MaxGasPrice to eth-tx-manager

* add logs, fix config

* update config file documentation

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* bugfix: attaching missing TxTracker.From to pending txs to store for forced batches. (#2365)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* improve: adding logs (#2373)

* improve: adding logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* adding more logs #2

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing finalizer's  handling. (#2375)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Update README.md

* change hashdb go package

* new hashdb interface

* aggregator pb refactor

* new prover image

* change prover config

* update prover image

* update to latest proto and prover image

* Refactor nonce calculation for addQueue (#2382)

* refactor nonce

* fix

* fix

* fix script

* check to avoid data inconsistencies (#2387)

* check to avoid data inconsistencies

* check batchL2Data

* names in the logs

* Refactor: avoid delete addrQueue if it has pending txs to store (#2391)

* refactor delete addrQueue only if not pending txs to store

* fix finalizer test

* fix olsStateRoot in handleForcedTxsProcessResp

* Update sequencer/addrqueue.go

Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

---------

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>

* Sort txs in worker by gasPrice (remove efficiency sort) (#2392)

* Sort txs in worker by GasPrice (remove efficiency sort)

* update config docs

---------

Co-authored-by: Toni Ramírez <toni@polygon.technology>

* use useMainExecGenerated (#2393)

* Fix store forced batch tx (#2394)

* l2coinbase (#2400)

* l2coinbase

* add default config

* add support  config fields that are common.Address

* docs

* prover image

---------

Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* Check flushID != 0 (#2406)

* Show tx.GasPrice in the worker logs (instead of tx.Cost) (#2416)

* Check flushID != 0 in Sequencer (#2415)

* check flushid != 0 in sequencer

* Use f.halt instead of log.Fatal to report that flushid is 0

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>

* fix lint

---------

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>

* update config params for Prover v2.1.0 (#2418)

* cherry-pick #2385 and #2396 from develop into v0.2.6 (#2412)

* fix http request instance null for websocket requests (#2385)

* fix ws subscribe to get filtered log notifications (#2396)

* new block endpoints and improvements to batch endpoint (#2411)

* Add forced batches tx to addrQueue (#2398)

* add forced batches tx to addrQueue

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* refactor

* fix test

* fix test

* fix test

* fix test

* fix test

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixes

* fixe hash and from

* fixe hash and from

* fixe hash and from

* fixe hash and from

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* improve tests

* improve tests

* improve tests

* improve tests

* improve tests

* refactor

* refactor

* improve logs

* bugifx: adding missing tx.BreakEvenGasPrice nil check

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Sync halt (#2428)

* cherry-pick #2245 and #2424 from develop into v0.2.6 (#2447)

* fix safe and finalized l2 block to consider l1 safe and finalized blocks respectively (#2245)

* fix and add tests for safe and finalized l2 blocks (#2424)

* New executor errors refactor (#2438)

* wip

* new errors

* retry on executor db error

* new prover images

* fix comment

* update hasdh proto and prover images

* handle excutor db error

* update test

* update test

* update test

* update test

* refactor error check in unsigned tx

* Reprocess full batch in parallel (sanity check) (#2425)

* reprocess full batch in parallel (sanity check)

* update doc

* update reprocessFullBatch logs

* Speed up deleting batches from stateDB creating an index for state.receipt.block_num (#2457)

* receipt deletion index

* receipt deletion index

* Feature/#2429 fork id improvement (#2450)

* db table + tests

* GetForks func modified to get them by range

* Sync forkID

* forkIDIntervals and forkID genesis

* linter

* docs

* Avoid resetForkID in trustedNode

* fix test group 9

* suggestions

* doc and mocks

* fix check storedFlushID (#2458)

* remove stored flush id 0 (#2459)

* Feature/#2403 snap (#2404)

* Path snapshot command

* restore

* readme

* options used by dbeaver

* #2429_forkID_improvement: #2429_forkID_improvement:

* fix

* fix postgres version to v15

* fix permissionless init script

* bugfix: removing measuring of metrics from async batch reprocessing f… (#2461)

* bugfix: removing measuring of metrics from async batch reprocessing for executor.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* fixing unit tests

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* update prover images (#2473)

* Update production-setup.md

* update doc

* fix jsonrpc tests

* fixes state.db

* update doc again

* remove obsolete config

* docs one more time...

---------

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>
Co-authored-by: joanestebanr <zodiac.ng@gmail.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: tclemos <thiago@polygon.technology>
Co-authored-by: tclemos <thiago@iden3.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>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Fix state configuration (#2478)

* Fix state configuration

* Remove ResourceWeights unnecessary configuration

* linter

* add http request content limit (#2448)

* remove http call from trace by batch number; fix batch by number not found  error (#2446)

* reverting to working version of the scripts

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* improve: adding handling of odd-length hex strings in .

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* benchmarks: removing the need to get sequencer IP from aws.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* tool to rerun batches (#2498)

* tool to rerun batches

* Cherrypick/fix convert process batch response (#2479)

* remove need of decoded txs to process a batch response

* fix

* fix typo

* fix

* fix fb convert handling

* handle invalid rlp error

* improve logs

* another fix

* change IsStateRootChanged

* fix INVALID_RLP

* new rlp error

---------

Co-authored-by: Alonso <ARR551@protonmail.com>

* build(deps): bump golang.org/x/net from 0.14.0 to 0.15.0 (#2513)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/net/compare/v0.14.0...v0.15.0)

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

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

* build(deps): bump google.golang.org/grpc from 1.57.0 to 1.58.0 (#2520)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.57.0 to 1.58.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.57.0...v1.58.0)

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

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

* build(deps): bump github.com/invopop/jsonschema from 0.7.0 to 0.8.0 (#2519)

* build(deps): bump github.com/invopop/jsonschema from 0.7.0 to 0.8.0

Bumps [github.com/invopop/jsonschema](https://github.com/invopop/jsonschema) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/invopop/jsonschema/compare/v0.7.0...v0.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* new jsonschema-0.8.0 produce a difference for genesis[].storage because is a map

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: joanestebanr <129153821+joanestebanr@users.noreply.github.com>

* Cherrypick/v0.3.1 to develop (#2516)

* fix error detection (#2506)

* fix error detection

* linter

* fix rom level error while syncing (#2507)

* Fix forkID (#2511)

* fix forkID reset

* linter

* sync logs

* leave blockNum column

* update on conflict

* logs

* fix unit test

* Remove prover ports (aggregator) from docker-compose (#2525)

* Fix rom ooc error detection (#2527) (#2529)

* Fix rom ooc error detection

* remove check

* fix logger (#2530)

* Use ZKEVM_NETWORK variable to specify location of config files in docker compose file (#2524)

* Use ZKEVM_NETWORK variable to specify location of config files in docker-compose

* fix config path in step 7.1

* rename ZKEVM_NODE_STATE_DB_DATA_DIR to ZKEVM_NODE_STATEDB_DATA_DIR

* improve the way the jRPC server log errors when returning an error response to the user (#2485)

* add jRPC support to eth_coinbase (#2500)

* only RPC component will refresh blocked addresses (#2501)

* fix merges (#2537)

* build(deps): bump github.com/go-git/go-git/v5 from 5.8.1 to 5.9.0 (#2541)

Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.8.1 to 5.9.0.
- [Release notes](https://github.com/go-git/go-git/releases)
- [Commits](https://github.com/go-git/go-git/compare/v5.8.1...v5.9.0)

---
updated-dependencies:
- dependency-name: github.com/go-git/go-git/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* avoid halt syncronization in permissionless nodes (#2536) (#2545)

* avoid halt syncronization in permissionless nodes

* logs

* logs with %d

* print always the batchL2Data

* Fix nil evaluation (#2544) (#2548)

* fix nil evaluation

* fix

* fix

* build(deps): bump google.golang.org/grpc from 1.58.0 to 1.58.1 (#2551)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.58.0 to 1.58.1.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.0...v1.58.1)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.2 to 1.13.0 (#2540)

* build(deps): bump github.com/ethereum/go-ethereum from 1.12.2 to 1.13.0

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.12.2...v1.13.0)

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

Signed-off-by: dependabot[bot] <support@github.com>

* return the gas price in base 16, not base 10

* change e2e call tracer test to conditionally validate revert reason

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Toni Ramírez <toni@polygon.technology>
Co-authored-by: tclemos <thiago@polygon.technology>

* build(deps): bump go.uber.org/zap from 1.25.0 to 1.26.0 (#2550)

Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.25.0...v1.26.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* L1 synchronization in parallel (#2504)

* L1 synchronization in parallel: merged feature/#2371-synchronizer_optimization

* build(deps): bump github.com/ethereum/go-ethereum from 1.13.0 to 1.13.1 (#2554)

Bumps [github.com/ethereum/go-ethereum](https://github.com/ethereum/go-ethereum) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/ethereum/go-ethereum/releases)
- [Commits](https://github.com/ethereum/go-ethereum/compare/v1.13.0...v1.13.1)

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

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

* renamed test function to remove underscore (#2557)

* add unit and e2e tests for big batch l2 data (#2539)

* Enable gasless txs on L2 (#2560) (#2565)

Enable gasless txs on L2

* Synchronizer L1 parallel:  improve context usage (#2568)

* + #2567: improve context, add unittest, remove unused code, improved logs

* Fix Makefile: should start synchronizer before eth-tx-manager (#2553)

* Fix Makefile: start synchronizer before eth-tx-manager

* increase sleep seconds for db migration

* fix trace default values and add condition to define which trace should be returned (#2576)

* Synchronizer L1 parallel: fix stuck due error on request (#2579)

* + limit pending results to give to consumer

* improve: improving benchmark scripts.

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* bugfix: fixing L2 Reorg check. (#2588)

Signed-off-by: Nikolay Nedkov <nikolai_nedkov@yahoo.com>

* Synchronizer L1 parallel: add control between retries to avoid spamming (#2585)

* +limit retries in time  for RollupInfo

* DB index (#2562) (#2570)

* build(deps): bump google.golang.org/grpc from 1.58.1 to 1.58.2 (#2592)

Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.58.1 to 1.58.2.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.58.1...v1.58.2)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Data Streamer (#2569)

* Data Streamer

* fix encode functions

* updates

* build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0 (#2594)

Bumps [github.com/spf13/afero](https://github.com/spf13/afero) from 1.9.5 to 1.10.0.
- [Release notes](https://github.com/spf13/afero/releases)
- [Commits](https://github.com/spf13/afero/compare/v1.9.5...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/afero
  depend…
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cherry-pick Content comes from a previous version branch cla-signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants