Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkLord017 committed Oct 12, 2024
1 parent cc5d497 commit b4fa59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ func (in *Inner) verify_generic_update(update *GenericUpdate, expectedCurrentSlo
if !isNextCommitteeProofValid(&update.AttestedHeader, update.NextSyncCommittee, *update.NextSyncCommitteeBranch) {
return ErrInvalidNextSyncCommitteeProof
}
} else if (update.NextSyncCommittee != nil && update.NextSyncCommitteeBranch == nil) && (update.NextSyncCommittee == nil && update.NextSyncCommitteeBranch != nil) {
} else if (update.NextSyncCommittee != nil && update.NextSyncCommitteeBranch == nil) || (update.NextSyncCommittee == nil && update.NextSyncCommitteeBranch != nil) {
return ErrInvalidNextSyncCommitteeProof
}

Expand Down

0 comments on commit b4fa59f

Please sign in to comment.