Skip to content

Commit

Permalink
Add metrics exposing a node's idea of its peers' catchup reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Dec 7, 2024
1 parent 56b87ef commit 6e0c906
Show file tree
Hide file tree
Showing 7 changed files with 193 additions and 58 deletions.
2 changes: 2 additions & 0 deletions builder/src/non_permissioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use hotshot_types::{
data::{fake_commitment, ViewNumber},
traits::{
block_contents::{vid_commitment, GENESIS_VID_NUM_STORAGE_NODES},
metrics::NoMetrics,
node_implementation::Versions,
EncodeBytes,
},
Expand Down Expand Up @@ -53,6 +54,7 @@ pub async fn build_instance_state<V: Versions>(
Arc::new(StatePeers::<SequencerApiVersion>::from_urls(
state_peers,
Default::default(),
&NoMetrics,
)),
V::Base::VERSION,
);
Expand Down
6 changes: 3 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ demo *args:
demo-native *args: build
scripts/demo-native {{args}}

build:
build profile="test":
#!/usr/bin/env bash
set -euxo pipefail
# Use the same target dir for both `build` invocations
export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-target}
cargo build --profile test
cargo build --profile test --manifest-path ./sequencer-sqlite/Cargo.toml
cargo build --profile {{profile}}
cargo build --profile {{profile}} --manifest-path ./sequencer-sqlite/Cargo.toml
demo-native-mp *args: build
scripts/demo-native -f process-compose.yaml -f process-compose-mp.yml {{args}}
Expand Down
2 changes: 2 additions & 0 deletions marketplace-builder/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ use hotshot_types::{
data::{fake_commitment, Leaf, ViewNumber},
traits::{
block_contents::{vid_commitment, GENESIS_VID_NUM_STORAGE_NODES},
metrics::NoMetrics,
node_implementation::{ConsensusTime, NodeType, Versions},
EncodeBytes,
},
Expand Down Expand Up @@ -77,6 +78,7 @@ pub async fn build_instance_state<V: Versions>(
Arc::new(StatePeers::<SequencerApiVersion>::from_urls(
state_peers,
Default::default(),
&NoMetrics,
)),
V::Base::version(),
);
Expand Down
Loading

0 comments on commit 6e0c906

Please sign in to comment.