mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: Add version to BeaconEngineMessage FCU (#12089)
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
This commit is contained in:
@ -324,22 +324,23 @@ where
|
||||
}
|
||||
|
||||
/// The version of Engine API message.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Default)]
|
||||
pub enum EngineApiMessageVersion {
|
||||
/// Version 1
|
||||
V1,
|
||||
V1 = 1,
|
||||
/// Version 2
|
||||
///
|
||||
/// Added in the Shanghai hardfork.
|
||||
V2,
|
||||
V2 = 2,
|
||||
/// Version 3
|
||||
///
|
||||
/// Added in the Cancun hardfork.
|
||||
V3,
|
||||
#[default]
|
||||
V3 = 3,
|
||||
/// Version 4
|
||||
///
|
||||
/// Added in the Prague hardfork.
|
||||
V4,
|
||||
V4 = 4,
|
||||
}
|
||||
|
||||
/// Determines how we should choose the payload to return.
|
||||
|
||||
@ -84,7 +84,7 @@ pub trait PayloadBuilderAttributes: Send + Sync + std::fmt::Debug {
|
||||
|
||||
/// Creates a new payload builder for the given parent block and the attributes.
|
||||
///
|
||||
/// Derives the unique [`PayloadId`] for the given parent and attributes
|
||||
/// Derives the unique [`PayloadId`] for the given parent, attributes and version.
|
||||
fn try_new(
|
||||
parent: B256,
|
||||
rpc_payload_attributes: Self::RpcPayloadAttributes,
|
||||
|
||||
Reference in New Issue
Block a user