diff --git a/crates/node/src/lib.rs b/crates/node/src/lib.rs index 079a05124fc..098284154f7 100644 --- a/crates/node/src/lib.rs +++ b/crates/node/src/lib.rs @@ -150,7 +150,7 @@ impl Shell { self.state .in_mem_mut() - .process_proposal_cache + .block_proposals_cache .put(block_hash, result); } Ok(Response::ProcessProposal(response)) @@ -219,7 +219,7 @@ impl Shell { let process_proposal_result = match self .state .in_mem_mut() - .process_proposal_cache + .block_proposals_cache .get(&finalize_req.block_hash) { // We already have the result of process proposal for this block @@ -250,7 +250,7 @@ impl Shell { } // Clear the cache of proposed blocks' results - self.state.in_mem_mut().process_proposal_cache.clear(); + self.state.in_mem_mut().block_proposals_cache.clear(); Ok(()) } diff --git a/crates/node/src/shims/abcipp_shim.rs b/crates/node/src/shims/abcipp_shim.rs index c6fc747db9b..5e19aa6a275 100644 --- a/crates/node/src/shims/abcipp_shim.rs +++ b/crates/node/src/shims/abcipp_shim.rs @@ -184,7 +184,7 @@ impl AbcippShim { .service .state .in_mem_mut() - .process_proposal_cache + .block_proposals_cache .get(&block_hash) { // We already have the result of process proposal for @@ -215,7 +215,7 @@ impl AbcippShim { self.service .state .in_mem_mut() - .process_proposal_cache + .block_proposals_cache .put(block_hash.to_owned(), result.clone()); result diff --git a/crates/state/src/in_memory.rs b/crates/state/src/in_memory.rs index 04f5a3d5a1b..e4c8d9817a8 100644 --- a/crates/state/src/in_memory.rs +++ b/crates/state/src/in_memory.rs @@ -83,7 +83,7 @@ where /// to avoid running process proposal more than once internally because of /// the shim or the recheck option (comet only calls it at most once /// for a given height/round) - pub process_proposal_cache: CLruCache, + pub block_proposals_cache: CLruCache, } /// Last committed block @@ -165,7 +165,7 @@ where eth_events_queue: EthEventsQueue::default(), storage_read_past_height_limit, commit_only_data: CommitOnlyData::default(), - process_proposal_cache: CLruCache::new( + block_proposals_cache: CLruCache::new( NonZeroUsize::new(10).unwrap(), ), } diff --git a/crates/state/src/lib.rs b/crates/state/src/lib.rs index caf4cd5ddaa..22e3c84562a 100644 --- a/crates/state/src/lib.rs +++ b/crates/state/src/lib.rs @@ -661,7 +661,7 @@ pub mod testing { eth_events_queue: EthEventsQueue::default(), storage_read_past_height_limit: Some(1000), commit_only_data: CommitOnlyData::default(), - process_proposal_cache: CLruCache::new( + block_proposals_cache: CLruCache::new( NonZeroUsize::new(10).unwrap(), ), }