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

eth: move eth.Config to a common package #22205

Merged
merged 13 commits into from
Feb 5, 2021

Conversation

rjl493456442
Copy link
Member

This PR moves the eth config definition into a separate/common package. So that both ETh/LES protocol can only import this common package.

@zsfelfoldi
Copy link
Contributor

Please fix the linter issue.

Copy link
Member

@gballet gballet left a comment

Choose a reason for hiding this comment

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

I'm not a fan, I have a couple outstanding Prs that I will have to rebase again because of this. Apart from that, LGTM.

eth/ethconfig/config.go Outdated Show resolved Hide resolved
@fjl
Copy link
Contributor

fjl commented Jan 25, 2021

With this change, les still imports eth for CreateConsensusEngine. Maybe it should be moved to ethconfig as well.

@rjl493456442
Copy link
Member Author

rjl493456442 commented Jan 25, 2021

@fjl I can also make the change here. I think the CreateConsensusEngine probably can be moved to the consensus pkg. Let me check if it's feasible.

@rjl493456442
Copy link
Member Author

@fjl I think all the dependency from the les to eth has been resolved. Please take another look.

@fjl fjl changed the title all: move the eth config to the common package eth: move eth.Config to a common package Jan 25, 2021
@fjl fjl self-assigned this Feb 2, 2021
@fjl fjl merged commit 098a2b6 into ethereum:master Feb 5, 2021
@fjl fjl added this to the 1.10.0 milestone Feb 5, 2021
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.

4 participants