Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: receipts cache touchups #13963

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions crates/rpc/rpc-eth-types/src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ pub(crate) struct EthStateCacheService<
{
/// The type used to lookup data from disk
provider: Provider,
/// The LRU cache for full blocks grouped by their hash.
/// The LRU cache for full blocks grouped by their block hash.
full_block_cache: BlockLruCache<Provider::Block, LimitBlocks>,
/// The LRU cache for full blocks grouped by their hash.
/// The LRU cache for block receipts grouped by the block hash.
receipts_cache: ReceiptsLruCache<Provider::Receipt, LimitReceipts>,
/// The LRU cache for headers.
///
Expand All @@ -278,7 +278,9 @@ pub(crate) struct EthStateCacheService<
action_rx: UnboundedReceiverStream<CacheAction<Provider::Block, Provider::Receipt>>,
/// The type that's used to spawn tasks that do the actual work
action_task_spawner: Tasks,
/// Rate limiter
/// Rate limiter for spawned fetch tasks.
///
/// This restricts the max concurrent fetch tasks at the same time.
rate_limiter: Arc<Semaphore>,
}

Expand Down
Loading