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

ChainConfig refactor #78

Merged
merged 9 commits into from
Jan 11, 2024
Merged

ChainConfig refactor #78

merged 9 commits into from
Jan 11, 2024

Conversation

elmato
Copy link
Contributor

@elmato elmato commented Oct 19, 2023

No description provided.

silkworm/core/chain/config.cpp Outdated Show resolved Hide resolved
silkworm/core/chain/config.cpp Outdated Show resolved Hide resolved
silkworm/core/chain/config.cpp Outdated Show resolved Hide resolved
@elmato elmato linked an issue Jan 4, 2024 that may be closed by this pull request
@elmato elmato changed the title [DONT MERGE] ChainConfig refactor (wip) ChainConfig refactor Jan 10, 2024
@elmato elmato requested a review from yarkinwho January 10, 2024 17:30
Copy link
Contributor

@yarkinwho yarkinwho left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -57,34 +58,124 @@ struct ChainConfig {
//! \brief Returns the type of the (pre-Merge) protocol rule set
protocol::RuleSetType protocol_rule_set{protocol::RuleSetType::kNoProof};

const std::optional<BlockNum>& homestead_block() const{
Copy link
Contributor

@yarkinwho yarkinwho Jan 11, 2024

Choose a reason for hiding this comment

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

Are those accessors really being used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there are some places in the code where those accessors are called individually and we are throwing an exception if the ruleset used is not kTrust

@elmato elmato merged commit 2a480c9 into master Jan 11, 2024
5 checks passed
@elmato elmato deleted the elmato/chain-config-refactor branch January 11, 2024 17:52
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.

Use nonce as EOSEVM version and map to EVMC revision
2 participants