From 25acca310cab2a372e92490f1f1c4e38d65437a5 Mon Sep 17 00:00:00 2001 From: Ian Shim Date: Tue, 4 Jun 2024 10:41:18 +0900 Subject: [PATCH] check attestation results from valid quorums only --- disperser/batcher/batcher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/disperser/batcher/batcher.go b/disperser/batcher/batcher.go index 11308f4000..f2f9028fee 100644 --- a/disperser/batcher/batcher.go +++ b/disperser/batcher/batcher.go @@ -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 }