mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-29 02:33:48 +00:00
add new gossip conditions
This commit is contained in:
@@ -155,7 +155,7 @@ pub mod attesting_indices_electra {
|
||||
Ok(indices)
|
||||
}
|
||||
|
||||
fn get_committee_indices<E: EthSpec>(
|
||||
pub fn get_committee_indices<E: EthSpec>(
|
||||
committee_bits: &BitVector<E::MaxCommitteesPerSlot>,
|
||||
) -> Vec<CommitteeIndex> {
|
||||
committee_bits
|
||||
|
||||
@@ -22,6 +22,7 @@ pub enum Error {
|
||||
SszTypesError(ssz_types::Error),
|
||||
AlreadySigned(usize),
|
||||
SubnetCountIsZero(ArithError),
|
||||
IncorrectStateVariant,
|
||||
}
|
||||
|
||||
#[superstruct(
|
||||
@@ -43,7 +44,9 @@ pub enum Error {
|
||||
serde(bound = "E: EthSpec", deny_unknown_fields),
|
||||
arbitrary(bound = "E: EthSpec"),
|
||||
),
|
||||
ref_attributes(derive(TreeHash), tree_hash(enum_behaviour = "transparent"))
|
||||
ref_attributes(derive(TreeHash), tree_hash(enum_behaviour = "transparent")),
|
||||
cast_error(ty = "Error", expr = "Error::IncorrectStateVariant"),
|
||||
partial_getter_error(ty = "Error", expr = "Error::IncorrectStateVariant")
|
||||
)]
|
||||
#[derive(
|
||||
Debug,
|
||||
|
||||
Reference in New Issue
Block a user