mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(op-reth): add jemalloc feature to optimism-cli for version (#11543)
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -7996,6 +7996,7 @@ dependencies = [
|
||||
"reth-node-builder",
|
||||
"reth-node-core",
|
||||
"reth-node-events",
|
||||
"reth-node-metrics",
|
||||
"reth-optimism-chainspec",
|
||||
"reth-optimism-evm",
|
||||
"reth-optimism-node",
|
||||
|
||||
@ -31,7 +31,7 @@ workspace = true
|
||||
[features]
|
||||
default = ["jemalloc"]
|
||||
|
||||
jemalloc = ["reth-cli-util/jemalloc"]
|
||||
jemalloc = ["reth-cli-util/jemalloc", "reth-optimism-cli/jemalloc"]
|
||||
jemalloc-prof = ["reth-cli-util/jemalloc-prof"]
|
||||
tracy-allocator = ["reth-cli-util/tracy-allocator"]
|
||||
|
||||
|
||||
@ -27,6 +27,9 @@ reth-node-core.workspace = true
|
||||
reth-optimism-node.workspace = true
|
||||
reth-primitives.workspace = true
|
||||
|
||||
# so jemalloc metrics can be included
|
||||
reth-node-metrics.workspace = true
|
||||
|
||||
## optimism
|
||||
reth-optimism-primitives.workspace = true
|
||||
reth-optimism-chainspec.workspace = true
|
||||
@ -82,3 +85,9 @@ asm-keccak = [
|
||||
"reth-optimism-node/asm-keccak",
|
||||
"reth-primitives/asm-keccak",
|
||||
]
|
||||
|
||||
# Jemalloc feature for vergen to generate correct env vars
|
||||
jemalloc = [
|
||||
"reth-node-core/jemalloc",
|
||||
"reth-node-metrics/jemalloc"
|
||||
]
|
||||
|
||||
@ -51,6 +51,10 @@ use reth_optimism_node::OptimismNode;
|
||||
use reth_tracing::FileWorkerGuard;
|
||||
use tracing::info;
|
||||
|
||||
// This allows us to manually enable node metrics features, required for proper jemalloc metric
|
||||
// reporting
|
||||
use reth_node_metrics as _;
|
||||
|
||||
/// The main op-reth cli interface.
|
||||
///
|
||||
/// This is the entrypoint to the executable.
|
||||
|
||||
Reference in New Issue
Block a user