feat: use caching layer when fetching blocks for logs (#2350)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
chirag-bgh
2023-04-23 16:25:29 +05:30
committed by GitHub
parent 370c39525a
commit 1026be0b64
3 changed files with 10 additions and 6 deletions

View File

@ -48,8 +48,8 @@ where
{
// spawn a new cache task
let eth_cache = EthStateCache::spawn_with(client.clone(), Default::default(), executor);
let eth_api = EthApi::new(client.clone(), pool.clone(), network, eth_cache);
let eth_filter = EthFilter::new(client, pool);
let eth_api = EthApi::new(client.clone(), pool.clone(), network, eth_cache.clone());
let eth_filter = EthFilter::new(client, pool, eth_cache.clone());
launch_with_eth_api(eth_api, eth_filter, engine_api, socket_addr, secret).await
}

View File

@ -754,7 +754,7 @@ where
self.network.clone(),
cache.clone(),
);
let filter = EthFilter::new(self.client.clone(), self.pool.clone());
let filter = EthFilter::new(self.client.clone(), self.pool.clone(), cache.clone());
let pubsub = EthPubSub::new(
self.client.clone(),