mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 20:22:02 +00:00
Block v3 endpoint (#4629)
## Issue Addressed #4582 ## Proposed Changes Add a new v3 block fetching flow that can decide to return a Full OR Blinded payload ## Additional Info Co-authored-by: Michael Sproul <micsproul@gmail.com>
This commit is contained in:
@@ -466,6 +466,11 @@ impl<T: EthSpec> From<GetPayloadResponse<T>>
|
||||
}
|
||||
}
|
||||
|
||||
pub enum GetPayloadResponseType<E: EthSpec> {
|
||||
Full(GetPayloadResponse<E>),
|
||||
Blinded(GetPayloadResponse<E>),
|
||||
}
|
||||
|
||||
impl<T: EthSpec> GetPayloadResponse<T> {
|
||||
pub fn execution_payload_ref(&self) -> ExecutionPayloadRef<T> {
|
||||
self.to_ref().into()
|
||||
|
||||
Reference in New Issue
Block a user