Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.7.1"
version = "0.7.2"
edition = "2024"
rust-version = "1.92"
authors = ["init4"]
Expand Down Expand Up @@ -35,13 +35,13 @@ incremental = false

[workspace.dependencies]
# internal
signet-hot = { version = "0.7.1", path = "./crates/hot" }
signet-hot-mdbx = { version = "0.7.1", path = "./crates/hot-mdbx" }
signet-cold = { version = "0.7.1", path = "./crates/cold" }
signet-cold-mdbx = { version = "0.7.1", path = "./crates/cold-mdbx" }
signet-cold-sql = { version = "0.7.1", path = "./crates/cold-sql" }
signet-storage = { version = "0.7.1", path = "./crates/storage" }
signet-storage-types = { version = "0.7.1", path = "./crates/types" }
signet-hot = { version = "0.7.2", path = "./crates/hot" }
signet-hot-mdbx = { version = "0.7.2", path = "./crates/hot-mdbx" }
signet-cold = { version = "0.7.2", path = "./crates/cold" }
signet-cold-mdbx = { version = "0.7.2", path = "./crates/cold-mdbx" }
signet-cold-sql = { version = "0.7.2", path = "./crates/cold-sql" }
signet-storage = { version = "0.7.2", path = "./crates/storage" }
signet-storage-types = { version = "0.7.2", path = "./crates/types" }

# External, in-house
signet-libmdbx = { version = "0.8.0" }
Expand Down
4 changes: 2 additions & 2 deletions crates/cold/src/task/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use signet_storage_types::{RecoveredTx, SealedHeader};
use std::num::NonZeroUsize;

/// Default capacity for each LRU cache map.
const DEFAULT_CACHE_CAPACITY: usize = 128;
const DEFAULT_CACHE_CAPACITY: usize = 2048;

/// Evict all entries from an LRU cache whose keys satisfy the predicate.
fn evict_where<K: Copy + Eq + std::hash::Hash, V>(
Expand All @@ -34,7 +34,7 @@ pub(crate) struct ColdCache {
}

impl ColdCache {
/// Create a new cache with the default capacity (128 per map).
/// Create a new cache with the default capacity (2048 per map).
pub(crate) fn new() -> Self {
Self::new_with_cap(DEFAULT_CACHE_CAPACITY)
}
Expand Down
Loading