Skip to content

Commit

Permalink
Check attestation results from valid quorums only (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Jun 4, 2024
1 parent acce810 commit 6be806f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions disperser/batcher/batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,9 @@ func numBlobsAttestedByQuorum(signedQuorums map[core.QuorumID]*core.QuorumResult

func isBlobAttested(signedQuorums map[core.QuorumID]*core.QuorumResult, header *core.BlobHeader) bool {
for _, quorum := range header.QuorumInfos {
if _, ok := signedQuorums[quorum.QuorumID]; !ok {
return false
}
if signedQuorums[quorum.QuorumID].PercentSigned < quorum.ConfirmationThreshold {
return false
}
Expand Down

0 comments on commit 6be806f

Please sign in to comment.