\engine_getInclusionListV1 fix

This commit is contained in:
Eitan Seri-Levi
2026-04-30 15:40:00 +02:00
parent afdb61326e
commit 4e3a3c1d7e
3 changed files with 6 additions and 7 deletions

View File

@@ -758,9 +758,8 @@ impl HttpJsonRpc {
pub async fn get_inclusion_list<E: EthSpec>(
&self,
parent_hash: Hash256,
) -> Result<Option<Vec<String>>, Error> {
let params = json!([parent_hash]);
let params = json!([]);
self.rpc_request(
ENGINE_GET_INCLUSION_LIST_V1,

View File

@@ -2006,18 +2006,18 @@ impl<E: EthSpec> ExecutionLayer<E> {
}
}
pub async fn get_inclusion_list(&self, parent_hash: Hash256) -> Result<Transactions<E>, Error> {
debug!(%parent_hash, "Requesting inclusion list from EL");
pub async fn get_inclusion_list(&self) -> Result<Transactions<E>, Error> {
debug!("Requesting inclusion list from EL");
let raw_transactions = self
.engine()
.api
.get_inclusion_list::<E>(parent_hash)
.get_inclusion_list::<E>()
.await?;
let mut transactions = vec![];
let Some(raw_transactions) = raw_transactions else {
debug!(%parent_hash, "The EL sent an empty inclusion list");
debug!("The EL sent an empty inclusion list");
return Ok(transactions.try_into()?);
};
for raw_tx in raw_transactions {