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

feat: Add is_vx helpers for EngineApiMessageVersion #14323

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

stevencartavia
Copy link
Contributor

closes #14321

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

that was fast

smol nit

@@ -347,6 +347,28 @@ pub enum EngineApiMessageVersion {
V4 = 4,
}

impl EngineApiMessageVersion {
/// Returns true if the version is V1.
pub fn is_v1(&self) -> bool {
Copy link
Collaborator

Choose a reason for hiding this comment

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

these can probably be const fn

@mattsse mattsse added the A-rpc Related to the RPC implementation label Feb 8, 2025
@mattsse mattsse enabled auto-merge February 8, 2025 07:22
@mattsse mattsse added this pull request to the merge queue Feb 8, 2025
Merged via the queue into paradigmxyz:main with commit 5c23189 Feb 8, 2025
44 checks passed
18aaddy pushed a commit to 18aaddy/reth that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add is_vx helpers for EngineApiMessageVersion
2 participants