add getInclusionListV1 capability to electra readiness

This commit is contained in:
jacobkaufmann
2024-12-08 22:02:13 -07:00
parent aca9fc2fca
commit c5c08793cc

View File

@@ -2,7 +2,9 @@
//! transition. //! transition.
use crate::{BeaconChain, BeaconChainTypes}; use crate::{BeaconChain, BeaconChainTypes};
use execution_layer::http::{ENGINE_GET_PAYLOAD_V4, ENGINE_NEW_PAYLOAD_V4}; use execution_layer::http::{
ENGINE_GET_INCLUSION_LIST_V1, ENGINE_GET_PAYLOAD_V4, ENGINE_NEW_PAYLOAD_V4,
};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::fmt; use std::fmt;
use std::time::Duration; use std::time::Duration;
@@ -98,6 +100,11 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
missing_methods.push_str(ENGINE_NEW_PAYLOAD_V4); missing_methods.push_str(ENGINE_NEW_PAYLOAD_V4);
all_good = false; all_good = false;
} }
if !capabilities.get_inclusion_list_v1 {
missing_methods.push(' ');
missing_methods.push_str(ENGINE_GET_INCLUSION_LIST_V1);
all_good = false;
}
if all_good { if all_good {
ElectraReadiness::Ready ElectraReadiness::Ready