add new gossip conditions

This commit is contained in:
realbigsean
2024-05-09 11:25:14 -04:00
parent 3ea3d226e1
commit f5eb33d548
5 changed files with 98 additions and 10 deletions

View File

@@ -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,