mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove outdated TODOs (#4498)
This commit is contained in:
@ -81,10 +81,6 @@ impl From<BuiltPayload> for ExecutionPayloadV1 {
|
||||
}
|
||||
|
||||
// V2 engine_getPayloadV2 response
|
||||
// TODO(rjected): we could improve this by wrapping envelope / payload types by version, so we can
|
||||
// have explicitly versioned return types for getPayload. Then BuiltPayload could essentially be a
|
||||
// builder for those types, and it would not be possible to e.g. return cancun fields for a
|
||||
// pre-cancun endpoint.
|
||||
impl From<BuiltPayload> for ExecutionPayloadEnvelopeV2 {
|
||||
fn from(value: BuiltPayload) -> Self {
|
||||
let BuiltPayload { block, fees, .. } = value;
|
||||
|
||||
@ -104,7 +104,6 @@ where
|
||||
|
||||
let cancun_fields = CancunPayloadFields { versioned_hashes, parent_beacon_block_root };
|
||||
|
||||
// TODO: validate versioned hashes and figure out what to do with parent_beacon_block_root
|
||||
Ok(self.inner.beacon_consensus.new_payload(payload, Some(cancun_fields)).await?)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user