Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/3518 use generic eth client for l2 #3519

Merged

Conversation

joanestebanr
Copy link
Contributor

Closes #3518

What does this PR do?

A trusted synchronizer can use a ethereum compatibility API to check L2block hashes

Reviewers

Main reviewers:

@joanestebanr joanestebanr added this to the v0.6.5 milestone Apr 3, 2024
@joanestebanr joanestebanr self-assigned this Apr 3, 2024
@cla-bot cla-bot bot added the cla-signed label Apr 3, 2024
@joanestebanr joanestebanr changed the base branch from develop to release/v0.6.5 April 3, 2024 15:03
@joanestebanr joanestebanr merged commit 26ec1b5 into release/v0.6.5 Apr 4, 2024
17 checks passed
@joanestebanr joanestebanr deleted the feature/3518-use_generic_eth_client_for_l2 branch April 4, 2024 08:18
joanestebanr added a commit that referenced this pull request Apr 4, 2024
* #3518 compatibility with ethereum-API L2 node
* migrate docker-compose to v2 because ubuntu:latest have deprecated it
* fix case trusted URL is not set
joanestebanr added a commit that referenced this pull request Apr 4, 2024
* #3518 compatibility with ethereum-API L2 node
* migrate docker-compose to v2 because ubuntu:latest have deprecated it
* fix case trusted URL is not set
@joanestebanr joanestebanr added the cherry-picked Content has been cherry-picked into a higher version branch label Apr 4, 2024
Stefan-Ethernal pushed a commit to 0xPolygon/cdk-validium-node that referenced this pull request Apr 10, 2024
* 0xPolygonHermez#3518 compatibility with ethereum-API L2 node
* migrate docker-compose to v2 because ubuntu:latest have deprecated it
* fix case trusted URL is not set
Stefan-Ethernal added a commit to 0xPolygon/cdk-validium-node that referenced this pull request Apr 10, 2024
* fix tx index calculation on receipt (0xPolygonHermez#3488)

* fix debug trace to compute egp percentage based on tx execution values (0xPolygonHermez#3503)

* fix debug trace to compute egp percentage based on tx execution values

* fix trace egp percentage for injected tx

* sort logs by tx hash and then by log index (0xPolygonHermez#3476)

* * Fix ResetL1InfoRoot + typos

* mocks

* linter

* refactor

* more robust

* Fix comments

* Add extra check reorg after calling get information

* Fix non e2e test

* Feature/3518 use generic eth client for l2 (0xPolygonHermez#3519)

* 0xPolygonHermez#3518 compatibility with ethereum-API L2 node
* migrate docker-compose to v2 because ubuntu:latest have deprecated it
* fix case trusted URL is not set

* fix deltaTimeStamp and TimestampLimit for eth_call (0xPolygonHermez#3529)

* Stop syncing l1inforoot when invalid l1inforoot is detected (0xPolygonHermez#3542)

* stop syncing l1inforoot when invalid l1inforoot is detected

* fix linter

* Feature/0xPolygonHermez#3544 sync block protection (0xPolygonHermez#3545)

* SyncBlockProtection parameter

* linter

* config

* Fix unit test

* add column checked on state.block (0xPolygonHermez#3543)

* add column checked on state.block

* if no unchecked blocks  return ErrNotFound

* migration set to checked all but the block with number below max-1000

* safe mode by default (0xPolygonHermez#3547)

* safe mode by default

* doc

* update docs

* Update the diff

---------

Co-authored-by: Toni Ramírez <58293609+ToniRamirezM@users.noreply.github.com>
Co-authored-by: Thiago Coimbra Lemos <tclemos@users.noreply.github.com>
Co-authored-by: Alonso Rodriguez <ARR552@users.noreply.github.com>
Co-authored-by: Joan Esteban <129153821+joanestebanr@users.noreply.github.com>
Co-authored-by: agnusmor <100322135+agnusmor@users.noreply.github.com>
Co-authored-by: Rachit Sonthalia <rachitsonthalia02@gmail.com>
Copy link

@GIgako19929 GIgako19929 left a comment

Choose a reason for hiding this comment

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

  • [ ]

@@ -37,6 +37,7 @@ import (
"github.com/0xPolygonHermez/zkevm-node/state/runtime/executor"
"github.com/0xPolygonHermez/zkevm-node/synchronizer"
"github.com/0xPolygonHermez/zkevm-node/synchronizer/common/syncinterfaces"
"github.com/ethereum/go-ethereum/ethclient"

Choose a reason for hiding this comment

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


@@ -5,7 +5,6 @@ import (
"math/big"
"testing"

rpctypes "github.com/0xPolygonHermez/zkevm-node/jsonrpc/types"

Choose a reason for hiding this comment

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

[

@@ -5,7 +5,6 @@ import (
"math/big"
"testing"

rpctypes "github.com/0xPolygonHermez/zkevm-node/jsonrpc/types"

Choose a reason for hiding this comment

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

  • [ ]

@@ -19,7 +18,7 @@ import (
type CheckL2BlocksTestData struct {

Choose a reason for hiding this comment

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

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked Content has been cherry-picked into a higher version branch cla-signed synchronizer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

synchronizer: compatibilize with generic L2 node
3 participants