ugly utils

This commit is contained in:
Pawan Dhananjay
2022-11-22 01:58:21 +05:30
committed by realbigsean
parent e8b5f311aa
commit 902055f295
5 changed files with 57 additions and 16 deletions

View File

@@ -258,6 +258,11 @@ pub trait EthSpec: 'static + Default + Sync + Send + Clone + Debug + PartialEq +
fn chunks_per_blob() -> usize {
Self::FieldElementsPerBlob::to_usize()
}
/// Returns the `BYTES_PER_BLOB` constant for the specification.
fn bytes_per_blob() -> usize {
Self::BytesPerBlob::to_usize()
}
}
/// Macro to inherit some type values from another EthSpec.