mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 04:37:13 +00:00
\engine_getInclusionListV1 fix
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user