Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hangleang committed Dec 31, 2024
1 parent e880d32 commit fadc052
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eth2_libp2p
1 change: 1 addition & 0 deletions fork_choice_control/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ types = { workspace = true }
[dev-dependencies]
bytesize = { workspace = true }
duplicate = { workspace = true }
eth2_cache_utils = { workspace = true }
factory = { workspace = true }
fs-err = { workspace = true }
serde-aux = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions grandine/src/grandine_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ struct NetworkConfigOptions {
}

impl NetworkConfigOptions {
#[expect(clippy::too_many_lines)]
fn into_config(
self,
network: Network,
Expand Down
1 change: 1 addition & 0 deletions http_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ database = { workspace = true }
dedicated_executor = { workspace = true }
deposit_tree = { workspace = true }
eth1 = { workspace = true }
eth2_cache_utils = { workspace = true }
execution_engine = { workspace = true }
factory = { workspace = true }
fork_choice_store = { workspace = true }
Expand Down
2 changes: 0 additions & 2 deletions http_api/src/standard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,6 @@ async fn publish_signed_block_with_data_column_sidecar<P: Preset, W: Wait>(
Ok(status_code)
}

#[allow(clippy::too_many_arguments)]
async fn publish_signed_block_v2<P: Preset, W: Wait>(
block: Arc<SignedBeaconBlock<P>>,
blob_sidecars: Vec<BlobSidecar<P>>,
Expand Down Expand Up @@ -2873,7 +2872,6 @@ async fn publish_signed_block_v2<P: Preset, W: Wait>(
}

// TODO(feature/das): merge with `publish_signed_block_v2`
#[allow(clippy::too_many_arguments)]
async fn publish_signed_block_v2_with_data_column_sidecar<P: Preset, W: Wait>(
block: Arc<SignedBeaconBlock<P>>,
data_column_sidecars: Vec<DataColumnSidecar<P>>,
Expand Down
3 changes: 3 additions & 0 deletions operation_pools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ tynm = { workspace = true }
typenum = { workspace = true }
types = { workspace = true }

[dev-dependencies]
eth2_cache_utils = { workspace = true }

[features]
eth2-cache = []
2 changes: 1 addition & 1 deletion p2p/src/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ impl<P: Preset> Network<P> {
self.request(peer_id, request_id, RequestType::DataColumnsByRoot(request));
}

fn subscribe_to_core_topics(&mut self) {
fn subscribe_to_core_topics(&self) {
// `subscribe_kind` locks `gossipsub_subscriptions` for writing.
// Read current subscriptions before subscribing to avoid a deadlock.
let subscribed_topics = self
Expand Down
4 changes: 2 additions & 2 deletions validator/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ impl<P: Preset, W: Wait + Sync> Validator<P, W> {
} else {
for blob_sidecar in misc::construct_blob_sidecars(
&block,
blobs.clone().into_iter(),
blobs.into_iter(),
block_proofs.unwrap_or_default().into_iter(),
)? {
let blob_sidecar = Arc::new(blob_sidecar);
Expand Down Expand Up @@ -991,7 +991,7 @@ impl<P: Preset, W: Wait + Sync> Validator<P, W> {
..
} = own_attestation;

let committee_index = misc::committee_index(&attestation);
let committee_index = misc::committee_index(attestation);

debug!(
"validator {} of committee {} ({:?}) attesting in slot {}: {:?}",
Expand Down

0 comments on commit fadc052

Please sign in to comment.