Skip to content

Commit

Permalink
fix: resolve merge conflicts in and cache mod
Browse files Browse the repository at this point in the history
  • Loading branch information
lean-apple committed Dec 20, 2024
1 parent acc7fb0 commit 88a8516
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/rpc/rpc-eth-types/src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,9 @@ impl<B: Block, R: Clone> ChainChange<B, R> {
/// immediately before they need to be fetched from disk.
///
/// Updates [`EthStateCache`] in two scenario :
/// 1. On reorgs: sets [`latest_chain_change`] to None and removes reorged blocks
/// 2. On new canonical blocks: updates [`latest_chain_change`] and caches the new blocks
/// 1. On reorgs: sets `EthStateCache::latest_chain_change` to None and removes reorged blocks
/// 2. On new canonical blocks: updates `EthStateCache::latest_chain_change` and caches the new
/// blocks
///
/// Reorged blocks are removed from the cache.
pub async fn cache_new_blocks_task<St, N: NodePrimitives>(
Expand Down

0 comments on commit 88a8516

Please sign in to comment.