fix a couple new lints

This commit is contained in:
realbigsean 2023-02-13 17:13:47 -05:00
parent cd8757de1c
commit d2ecbd942e
No known key found for this signature in database
GPG Key ID: BE1B3DB104F6C788
3 changed files with 4 additions and 2 deletions

View File

@ -2160,7 +2160,7 @@ fn ethers_tx_to_bytes<T: EthSpec>(
.ok_or(BlobTxConversionError::BlobVersionedHashesMissing)?
.as_array()
.ok_or(BlobTxConversionError::BlobVersionedHashesMissing)?
.into_iter()
.iter()
.map(|versioned_hash| {
let hash_bytes = eth2_serde_utils::hex::decode(
versioned_hash

View File

@ -227,7 +227,7 @@ impl BlockId {
"Blob with block root {} is not in the store",
root
))),
Err(e) => Err(warp_utils::reject::beacon_chain_error(e.into())),
Err(e) => Err(warp_utils::reject::beacon_chain_error(e)),
}
}
}

View File

@ -562,6 +562,8 @@ impl<T: BeaconChainTypes> SyncNetworkContext<T> {
/// blocks and blobs.
#[allow(unused)]
pub fn batch_type(&self, epoch: types::Epoch) -> ByRangeRequestType {
// Induces a compile time panic if this doesn't hold true.
#[allow(clippy::assertions_on_constants)]
const _: () = assert!(
super::backfill_sync::BACKFILL_EPOCHS_PER_BATCH == 1
&& super::range_sync::EPOCHS_PER_BATCH == 1,