fix get attesting indices (#5742)

* fix get attesting indices

* better errors

* fix compile

* only get committee index once
This commit is contained in:
realbigsean
2024-05-09 09:34:56 -04:00
committed by GitHub
parent 43c3f63e30
commit e32dfcdcad
3 changed files with 16 additions and 7 deletions

View File

@@ -159,7 +159,8 @@ pub enum Error {
IndexNotSupported(usize),
InvalidFlagIndex(usize),
MerkleTreeError(merkle_proof::MerkleTreeError),
NoCommitteeFound,
NoCommitteeFound(CommitteeIndex),
InvalidCommitteeIndex(CommitteeIndex),
}
/// Control whether an epoch-indexed field can be indexed at the next epoch or not.