Add db boilerplate for payload envelope

This commit is contained in:
Eitan Seri- Levi
2026-01-28 18:26:56 -08:00
parent f7b5c7ee3f
commit 3df2cf8f7e
7 changed files with 186 additions and 3 deletions

View File

@@ -1295,6 +1295,13 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
Ok(self.store.get_blinded_block(block_root)?)
}
pub fn get_payload(
&self,
block_root: &Hash256,
) -> Result<Option<SignedExecutionPayloadEnvelope<T::EthSpec>>, Error> {
Ok(self.store.get_payload_envelope(block_root)?)
}
/// Return the status of a block as it progresses through the various caches of the beacon
/// chain. Used by sync to learn the status of a block and prevent repeated downloads /
/// processing attempts.