Current slot stats are removed when the slot is full or every 30 seconds if the slot is before root: https://github.com/solana-labs/solana/blob/493a8e234/ledger/src/blockstore.rs#L2017-L2027 In order to track if the slot is ultimately marked as dead or rooted and emit more metrics, this commit expands lifetime of SlotStats while bounding total size of cache using an LRU eviction policy.
86 lines
2.6 KiB
TOML
86 lines
2.6 KiB
TOML
[package]
|
|
name = "solana-ledger"
|
|
version = "1.11.0"
|
|
description = "Solana ledger"
|
|
authors = ["Solana Maintainers <maintainers@solana.foundation>"]
|
|
repository = "https://github.com/solana-labs/solana"
|
|
license = "Apache-2.0"
|
|
homepage = "https://solana.com/"
|
|
documentation = "https://docs.rs/solana-ledger"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
bincode = "1.3.3"
|
|
bitflags = "1.3.1"
|
|
byteorder = "1.4.3"
|
|
chrono = { version = "0.4.11", features = ["serde"] }
|
|
chrono-humanize = "0.2.1"
|
|
crossbeam-channel = "0.5"
|
|
fs_extra = "1.2.0"
|
|
futures = "0.3.21"
|
|
itertools = "0.10.3"
|
|
lazy_static = "1.4.0"
|
|
libc = "0.2.120"
|
|
log = { version = "0.4.14" }
|
|
lru = "0.7.3"
|
|
num-derive = "0.3"
|
|
num-traits = "0.2"
|
|
num_cpus = "1.13.1"
|
|
prost = "0.9.0"
|
|
rand = "0.7.0"
|
|
rand_chacha = "0.2.2"
|
|
rayon = "1.5.1"
|
|
reed-solomon-erasure = { version = "5.0.1", features = ["simd-accel"] }
|
|
serde = "1.0.136"
|
|
serde_bytes = "0.11.5"
|
|
sha2 = "0.10.2"
|
|
solana-bpf-loader-program = { path = "../programs/bpf_loader", version = "=1.11.0" }
|
|
solana-entry = { path = "../entry", version = "=1.11.0" }
|
|
solana-frozen-abi = { path = "../frozen-abi", version = "=1.11.0" }
|
|
solana-frozen-abi-macro = { path = "../frozen-abi/macro", version = "=1.11.0" }
|
|
solana-measure = { path = "../measure", version = "=1.11.0" }
|
|
solana-metrics = { path = "../metrics", version = "=1.11.0" }
|
|
solana-perf = { path = "../perf", version = "=1.11.0" }
|
|
solana-program-runtime = { path = "../program-runtime", version = "=1.11.0" }
|
|
solana-rayon-threadlimit = { path = "../rayon-threadlimit", version = "=1.11.0" }
|
|
solana-runtime = { path = "../runtime", version = "=1.11.0" }
|
|
solana-sdk = { path = "../sdk", version = "=1.11.0" }
|
|
solana-storage-bigtable = { path = "../storage-bigtable", version = "=1.11.0" }
|
|
solana-storage-proto = { path = "../storage-proto", version = "=1.11.0" }
|
|
solana-transaction-status = { path = "../transaction-status", version = "=1.11.0" }
|
|
solana-vote-program = { path = "../programs/vote", version = "=1.11.0" }
|
|
tempfile = "3.3.0"
|
|
thiserror = "1.0"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-stream = "0.1"
|
|
trees = "0.4.2"
|
|
|
|
[dependencies.rocksdb]
|
|
# Avoid the vendored bzip2 within rocksdb-sys that can cause linker conflicts
|
|
# when also using the bzip2 crate
|
|
version = "0.18.0"
|
|
default-features = false
|
|
features = ["lz4"]
|
|
|
|
[dev-dependencies]
|
|
assert_matches = "1.5.0"
|
|
matches = "0.1.9"
|
|
solana-account-decoder = { path = "../account-decoder", version = "=1.11.0" }
|
|
solana-logger = { path = "../logger", version = "=1.11.0" }
|
|
|
|
[build-dependencies]
|
|
rustc_version = "0.4"
|
|
|
|
[lib]
|
|
crate-type = ["lib"]
|
|
name = "solana_ledger"
|
|
|
|
[[bench]]
|
|
name = "sigverify_shreds"
|
|
|
|
[[bench]]
|
|
name = "blockstore"
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|