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

Compose Protocol Spec with Dagger #7326

Open
jflo opened this issue Jul 15, 2024 · 0 comments
Open

Compose Protocol Spec with Dagger #7326

jflo opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
techdebt maintenance, cleanup, refactoring, documentation

Comments

@jflo
Copy link
Contributor

jflo commented Jul 15, 2024

Per this comment

The ProtocolSpec collects all necessary objects needed to adhere to an Ethereum protocol for a specified segment of the blockchain. That segment is best thought of as the chain of blocks between hardfork points, and each is defined by a ProtocolSchedule. Any time protocol logic may vary depending on block height (i.e. when features have been released or not), the ProtocolSchedule is consulted to get the current ProtocolSpec, which then provides the necessary implementations.

The ProtocolSpec is usually a collection of instances which all behave in a fixed way, which is known at compile time. This makes it a good candidate for providing via Dagger, and any client classes using what is provided, will no longer care about what those depend on.

@jflo jflo added the techdebt maintenance, cleanup, refactoring, documentation label Jul 15, 2024
@jflo jflo self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
techdebt maintenance, cleanup, refactoring, documentation
Projects
None yet
Development

No branches or pull requests

1 participant