-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be GIBBS
here?
* 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>
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:
Potential Impacts