From 0b1e6ad66f4cd81c58a32294d5145db9451ae1a3 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 02 Nov 2023 16:37:15 +0000 Subject: [PATCH] fix: remove timestamp get from ethereum pending rpc We have no use for aura digest in pending block. --- --- a/node/cli/src/rpc.rs +++ b/node/cli/src/rpc.rs @@ -17,9 +17,7 @@ use std::sync::Arc; use fc_mapping_sync::{EthereumBlockNotification, EthereumBlockNotificationSinks}; -use fc_rpc::{ - pending::AuraConsensusDataProvider, EthBlockDataCacheTask, EthConfig, OverrideHandle, -}; +use fc_rpc::{EthBlockDataCacheTask, EthConfig, OverrideHandle}; use fc_rpc_core::types::{FeeHistoryCache, FilterPool}; use fp_rpc::NoTransactionConverter; use jsonrpsee::RpcModule; @@ -221,7 +219,7 @@ client.clone(), pool.clone(), graph.clone(), - // We have no runtimes old enough to only accept converted transactions + // We have no runtimes old enough to only accept converted transactions. None::, sync.clone(), signers, @@ -234,7 +232,8 @@ execute_gas_limit_multiplier, None, pending_create_inherent_data_providers, - Some(Box::new(AuraConsensusDataProvider::new(client.clone()))), + // Our extrinsics have nothing to do with consensus digest items yet. + None, ) .into_rpc(), )?; -- gitstuff