mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Merge tag 'v4.5.0' into tree-states
v4.5.0
This commit is contained in:
@@ -2,44 +2,40 @@
|
||||
name = "state_processing"
|
||||
version = "0.2.0"
|
||||
authors = ["Paul Hauner <paul@paulhauner.com>", "Michael Sproul <michael@sigmaprime.io>"]
|
||||
edition = "2021"
|
||||
edition = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
env_logger = "0.9.0"
|
||||
beacon_chain = { path = "../../beacon_node/beacon_chain" }
|
||||
tokio = { version = "1.14.0", features = ["rt-multi-thread"] }
|
||||
env_logger = { workspace = true }
|
||||
beacon_chain = { workspace = true }
|
||||
tokio = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
bls = { path = "../../crypto/bls" }
|
||||
bls = { workspace = true }
|
||||
integer-sqrt = "0.1.5"
|
||||
itertools = "0.10.0"
|
||||
ethereum_ssz = "0.5.0"
|
||||
ethereum_ssz_derive = "0.5.0"
|
||||
ssz_types = "0.5.3"
|
||||
merkle_proof = { path = "../merkle_proof" }
|
||||
safe_arith = { path = "../safe_arith" }
|
||||
tree_hash = "0.5.0"
|
||||
types = { path = "../types", default-features = false }
|
||||
rayon = "1.4.1"
|
||||
ethereum_hashing = "1.0.0-beta.2"
|
||||
int_to_bytes = { path = "../int_to_bytes" }
|
||||
smallvec = "1.6.1"
|
||||
arbitrary = { version = "1.0", features = ["derive"], optional = true }
|
||||
lighthouse_metrics = { path = "../../common/lighthouse_metrics", optional = true }
|
||||
lazy_static = { version = "1.4.0", optional = true }
|
||||
rustc-hash = "1.1.0"
|
||||
itertools = { workspace = true }
|
||||
ethereum_ssz = { workspace = true }
|
||||
ethereum_ssz_derive = { workspace = true }
|
||||
ssz_types = { workspace = true }
|
||||
merkle_proof = { workspace = true }
|
||||
safe_arith = { workspace = true }
|
||||
tree_hash = { workspace = true }
|
||||
types = { workspace = true }
|
||||
rayon = { workspace = true }
|
||||
ethereum_hashing = { workspace = true }
|
||||
int_to_bytes = { workspace = true }
|
||||
smallvec = { workspace = true }
|
||||
arbitrary = { workspace = true }
|
||||
lighthouse_metrics = { workspace = true }
|
||||
lazy_static = { workspace = true }
|
||||
derivative = { workspace = true }
|
||||
vec_map = "0.8.2"
|
||||
derivative = "2.1.1"
|
||||
|
||||
[features]
|
||||
default = ["legacy-arith", "metrics"]
|
||||
default = ["legacy-arith"]
|
||||
fake_crypto = ["bls/fake_crypto"]
|
||||
legacy-arith = ["types/legacy-arith"]
|
||||
metrics = ["lighthouse_metrics", "lazy_static"]
|
||||
arbitrary-fuzz = [
|
||||
"arbitrary",
|
||||
"types/arbitrary-fuzz",
|
||||
"bls/arbitrary",
|
||||
"merkle_proof/arbitrary",
|
||||
"ethereum_ssz/arbitrary",
|
||||
"ssz_types/arbitrary",
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#![cfg(feature = "metrics")]
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
pub use lighthouse_metrics::*;
|
||||
|
||||
|
||||
@@ -87,7 +87,6 @@ impl<T: EthSpec> ParticipationEpochSummary<T> {
|
||||
|
||||
impl<T: EthSpec> EpochProcessingSummary<T> {
|
||||
/// Updates some Prometheus metrics with some values in `self`.
|
||||
#[cfg(feature = "metrics")]
|
||||
pub fn observe_metrics(&self) -> Result<(), BeaconStateError> {
|
||||
metrics::set_gauge(
|
||||
&metrics::PARTICIPATION_PREV_EPOCH_HEAD_ATTESTING_GWEI_TOTAL,
|
||||
|
||||
Reference in New Issue
Block a user