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

fix(op-node): l1 client use eth_getFinalizedBlock to get finalized block #36

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

bnoieh
Copy link
Contributor

@bnoieh bnoieh commented Aug 23, 2023

Description

This PR changed rpc method of get finalized L1 block

Rationale

There are two methods to get finalized block on BSC:

  1. eth_getBLockByNumber with finalized tag
  2. eth_getFinalizedBlock

first one only return the fastFinalizedHeader, which is not exactly finalizedHeader when fast finality action failed.
second one is a bsc specific rpc method to always return right finalizedHeader.

currently we used first one, and we should use second one instead

Example

N/A

Changes

This PR changes l1Client to use second method instead of first one

@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Sep 7, 2023
@github-actions github-actions bot closed this Sep 13, 2023
@bnoieh bnoieh reopened this Sep 19, 2023
@owen-reorg owen-reorg removed the Stale label Sep 20, 2023
@owen-reorg
Copy link
Collaborator

Although the changes in this pull request (PR) will not result in a hard fork, they will modify the behavior related to returning the "finalize" block height. It is advisable to put this on hold for now and release it as part of a hard fork plan.

@owen-reorg owen-reorg added Stale and removed Stale labels Oct 7, 2023
Copy link
Contributor

@bendanzhentan bendanzhentan left a comment

Choose a reason for hiding this comment

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

LGTM

@bnoieh
Copy link
Contributor Author

bnoieh commented Oct 9, 2023

ghcr.io/bnoieh/op-node:pr.36.96553e3

@owen-reorg owen-reorg merged commit 5bbdb8b into bnb-chain:develop Oct 11, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants