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

add capella support for mev-boost-rs #68

Merged
merged 4 commits into from
Jan 31, 2023
Merged

add capella support for mev-boost-rs #68

merged 4 commits into from
Jan 31, 2023

Conversation

ralexstokes
Copy link
Owner

replaces #66.

Comment on lines +37 to +44
pub fn value(&self) -> &U256 {
match self {
Self::Bellatrix(bid) => &bid.message.value,
Self::Capella(bid) => &bid.message.value,
}
}

pub fn block_hash(&self) -> &Hash32 {
Copy link
Owner Author

Choose a reason for hiding this comment

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

not in love w/ this polymorphism strategy, but assuming nothing better it will make sense to consolidate this into a derive macro

@ralexstokes ralexstokes merged commit b6cc136 into main Jan 31, 2023
@ralexstokes ralexstokes deleted the new-capella branch January 31, 2023 15:36
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.

None yet

1 participant