diff --git a/beacon_node/store/src/hot_cold_store.rs b/beacon_node/store/src/hot_cold_store.rs index 557d2a34d6..6e165702a2 100644 --- a/beacon_node/store/src/hot_cold_store.rs +++ b/beacon_node/store/src/hot_cold_store.rs @@ -1,4 +1,3 @@ -use crate::DatabasePayloadEnvelope; use crate::config::{OnDiskStoreConfig, StoreConfig}; use crate::database::interface::BeaconNodeBackend; use crate::forwards_iter::{HybridForwardsBlockRootsIterator, HybridForwardsStateRootsIterator}; @@ -746,27 +745,6 @@ impl, Cold: ItemStore> HotColdDB .map_err(|e| e.into()) } - pub fn try_get_full_payload_envelope( - &self, - block_root: &Hash256, - ) -> Result>, Error> { - // TODO(gloas) metrics - // metrics::inc_counter(&metrics::PAYLOAD_ENVELOPE_GET_COUNT); - - // Load the execution payload envelope - // TODO(gloas) we'll want to implement a way to load a blinded envelope - let Some(envelope) = self.get_payload_envelope(block_root)? else { - return Ok(None); - }; - - Ok(Some(DatabasePayloadEnvelope::Full(envelope))) - - // TODO(gloas) implement the logic described below (see `try_get_full_block`) - // If the payload envelope is after the split point then we should have the full execution payload - // stored in the database. If it isn't but payload pruning is disabled, try to load it - // on-demand. - } - pub fn get_payload_envelope( &self, block_root: &Hash256, diff --git a/beacon_node/store/src/lib.rs b/beacon_node/store/src/lib.rs index 3351b182ec..3363eb800c 100644 --- a/beacon_node/store/src/lib.rs +++ b/beacon_node/store/src/lib.rs @@ -390,13 +390,6 @@ pub enum DatabaseBlock { Blinded(SignedBeaconBlock>), } -/// An execution payload envelope from the database -// TODO(gloas) implement blinded variant -pub enum DatabasePayloadEnvelope { - Full(SignedExecutionPayloadEnvelope), - Blinded(SignedExecutionPayloadEnvelope), -} - impl DBColumn { pub fn as_str(self) -> &'static str { self.into()