clean up gloas-payload-cache

This commit is contained in:
Eitan Seri-Levi
2026-05-01 03:31:51 +02:00
parent 64c53c6553
commit f7c7ed8457
4 changed files with 15 additions and 13 deletions

View File

@@ -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(),