mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
progress
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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())
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user