mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 06:48:27 +00:00
Tidy up payload attestation verification
This commit is contained in:
@@ -2,7 +2,6 @@ use crate::test_utils::TestRandom;
|
||||
use crate::{EthSpec, ForkName, PayloadAttestationData};
|
||||
use bls::AggregateSignature;
|
||||
use context_deserialize::context_deserialize;
|
||||
use core::slice::Iter;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use ssz_derive::{Decode, Encode};
|
||||
use ssz_types::VariableList;
|
||||
@@ -21,12 +20,6 @@ pub struct IndexedPayloadAttestation<E: EthSpec> {
|
||||
pub signature: AggregateSignature,
|
||||
}
|
||||
|
||||
impl<E: EthSpec> IndexedPayloadAttestation<E> {
|
||||
pub fn attesting_indices_iter(&self) -> Iter<'_, u64> {
|
||||
self.attesting_indices.iter()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user