Files
lighthouse/beacon_node/beacon_chain/src/payload_envelope_verification/tests.rs
Eitan Seri- Levi 9f972d1743 progress
2026-02-11 14:53:24 -08:00

21 lines
750 B
Rust

use std::sync::Arc;
use crate::{AvailabilityProcessingStatus, BeaconChain, BeaconChainTypes, payload_envelope_verification::{ExecutedEnvelope, ExecutionPendingEnvelope}};
async fn import_execution_pending_envelope<T: BeaconChainTypes>(
chain: Arc<BeaconChain<T>>,
execution_pending_envelope: ExecutionPendingEnvelope<T>,
) -> Result<AvailabilityProcessingStatus, String> {
match chain
.clone()
.into_executed_payload_envelope(execution_pending_envelope)
.await
.unwrap()
{
ExecutedEnvelope::Available(envelope) => todo!(),
ExecutedEnvelope::AvailabilityPending() => {
Err("AvailabilityPending not expected in this test. Block not imported.".to_string())
}
}
}