fix a couple new lints
This commit is contained in:
parent
cd8757de1c
commit
d2ecbd942e
@ -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
|
||||
|
@ -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)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user