mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
lints
This commit is contained in:
@@ -652,12 +652,12 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub async fn process_gossip_blob(
|
||||
self,
|
||||
message_id: MessageId,
|
||||
_message_id: MessageId,
|
||||
peer_id: PeerId,
|
||||
peer_client: Client,
|
||||
blob_index: u64,
|
||||
signed_blob: Arc<SignedBlobSidecar<T::EthSpec>>,
|
||||
seen_duration: Duration,
|
||||
_seen_duration: Duration,
|
||||
) {
|
||||
// TODO: gossip verification
|
||||
crit!(self.log, "UNIMPLEMENTED gossip blob verification";
|
||||
|
||||
@@ -252,7 +252,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
block_parent_root: block.parent_root,
|
||||
proposer_index: block.proposer_index,
|
||||
blob,
|
||||
kzg_commitment: block.body.blob_kzg_commitments[known_index].clone(), // TODO: needs to be stored in a more logical way so that this won't panic.
|
||||
kzg_commitment: block.body.blob_kzg_commitments[known_index], // TODO: needs to be stored in a more logical way so that this won't panic.
|
||||
kzg_proof: kzg_aggregated_proof // TODO: yeah
|
||||
};
|
||||
self.send_response(
|
||||
@@ -843,7 +843,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
beacon_block_root,
|
||||
beacon_block_slot,
|
||||
blobs: blob_bundle,
|
||||
kzg_aggregated_proof,
|
||||
kzg_aggregated_proof: _,
|
||||
}: types::BlobsSidecar<_> = blobs;
|
||||
|
||||
for (blob_index, blob) in blob_bundle.into_iter().enumerate() {
|
||||
|
||||
@@ -32,7 +32,7 @@ impl<T: EthSpec> BlocksAndBlobsRequestInfo<T> {
|
||||
pub fn into_responses(self) -> Result<Vec<TempBlockWrapper<T>>, &'static str> {
|
||||
let BlocksAndBlobsRequestInfo {
|
||||
accumulated_blocks,
|
||||
mut accumulated_sidecars,
|
||||
accumulated_sidecars,
|
||||
..
|
||||
} = self;
|
||||
|
||||
|
||||
@@ -875,8 +875,8 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
fn rpc_blobs_received(
|
||||
&mut self,
|
||||
request_id: RequestId,
|
||||
peer_id: PeerId,
|
||||
maybe_blob: Option<Arc<BlobSidecar<<T>::EthSpec>>>,
|
||||
_peer_id: PeerId,
|
||||
_maybe_blob: Option<Arc<BlobSidecar<<T>::EthSpec>>>,
|
||||
_seen_timestamp: Duration,
|
||||
) {
|
||||
match request_id {
|
||||
@@ -892,7 +892,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
RequestId::RangeBlocks { .. } => {
|
||||
unreachable!("Only-blocks range requests don't receive sidecars")
|
||||
}
|
||||
RequestId::RangeBlobs { id } => {
|
||||
RequestId::RangeBlobs { id: _ } => {
|
||||
unimplemented!("Adjust range");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user