Dedup Attestation constructor code

This commit is contained in:
dapplion
2024-06-18 19:00:02 +02:00
parent 6a4d842376
commit 6f0b78426a
3 changed files with 22 additions and 70 deletions

View File

@@ -89,6 +89,7 @@ impl<E: EthSpec> Hash for Attestation<E> {
}
impl<E: EthSpec> Attestation<E> {
/// Produces an attestation with empty signature.
pub fn empty_for_signing(
committee_index: u64,
committee_length: usize,