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: spec mapping issue and snapshot overwrite issue #52

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

pythonberg1997
Copy link
Contributor

Description

This pr is to fix some sync issues of bsc

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Potential Impacts

  • add potential impacts for other components here
  • ...

@pythonberg1997 pythonberg1997 changed the base branch from main to develop July 1, 2024 08:48
@@ -112,12 +112,16 @@ pub fn revm_spec(chain_spec: &ChainSpec, block: Head) -> revm_primitives::SpecId
} else if chain_spec.fork(Hardfork::Gibbs).active_at_head(&block) {
// bsc mainnet and testnet have different order for Moran, Nano and Gibbs
Copy link
Collaborator

@unclezoro unclezoro Jul 1, 2024

Choose a reason for hiding this comment

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

For BSC mainnet, if chain_spec.fork(Hardfork::Gibbs).active_at_head(&block), it should return Gibbs, isn't it?

However it is no way to return Gibbs now.

@@ -112,12 +112,16 @@ pub fn revm_spec(chain_spec: &ChainSpec, block: Head) -> revm_primitives::SpecId
} else if chain_spec.fork(Hardfork::Gibbs).active_at_head(&block) {
// bsc mainnet and testnet have different order for Moran, Nano and Gibbs
return if chain_spec.fork(Hardfork::Moran).active_at_head(&block) {
revm_primitives::GIBBS
revm_primitives::MORAN
} else if chain_spec.fork(Hardfork::Nano).active_at_head(&block) {
revm_primitives::NANO
} else {
revm_primitives::EULER
Copy link
Collaborator

Choose a reason for hiding this comment

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

should be GIBBS here?

@pythonberg1997 pythonberg1997 added this pull request to the merge queue Jul 2, 2024
Merged via the queue into develop with commit 08af175 Jul 2, 2024
33 checks passed
@pythonberg1997 pythonberg1997 deleted the roshan/parlia-test-mainnet branch July 2, 2024 07:24
pythonberg1997 added a commit to pythonberg1997/reth that referenced this pull request Jul 3, 2024
* ci: tag non-beta version as latest image (bnb-chain#51)

* chore: add bsc and docker commands to readme (bnb-chain#50)

* chore: add bsc commands to readme

* fix review comments

* fix op dockerfile issue

* fix: spec mapping issue and snapshot overwrite issue (bnb-chain#52)

* fix: system account status issue (bnb-chain#53)

* test1

* test2

* test3

* test4

* test5

* test6

* test7

* test8

* update CI

---------

Co-authored-by: dylanhuang <j75689@gmail.com>
Co-authored-by: forcodedancing <just.haha.it@gmail.com>
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