mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
clean up gloas-payload-cache
This commit is contained in:
@@ -25,6 +25,14 @@ pub struct SignedExecutionPayloadBid<E: EthSpec> {
|
||||
}
|
||||
|
||||
impl<E: EthSpec> SignedExecutionPayloadBid<E> {
|
||||
pub fn epoch(&self) -> crate::Epoch {
|
||||
self.message.slot.epoch(E::slots_per_epoch())
|
||||
}
|
||||
|
||||
pub fn slot(&self) -> crate::Slot {
|
||||
self.message.slot
|
||||
}
|
||||
|
||||
pub fn empty() -> Self {
|
||||
Self {
|
||||
message: ExecutionPayloadBid::default(),
|
||||
|
||||
Reference in New Issue
Block a user