mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
add getInclusionListV1 capability to electra readiness
This commit is contained in:
@@ -2,7 +2,9 @@
|
||||
//! transition.
|
||||
|
||||
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 std::fmt;
|
||||
use std::time::Duration;
|
||||
@@ -98,6 +100,11 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
missing_methods.push_str(ENGINE_NEW_PAYLOAD_V4);
|
||||
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 {
|
||||
ElectraReadiness::Ready
|
||||
|
||||
Reference in New Issue
Block a user