From 6cc2c88a6b86bc6b82586e1db09e01f42c68ab20 Mon Sep 17 00:00:00 2001 From: chatton Date: Mon, 3 Mar 2025 12:23:42 +0000 Subject: [PATCH] chore: correctly validate share proof --- types/share_proof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/share_proof.go b/types/share_proof.go index 08c078b0083..5be7cb39945 100644 --- a/types/share_proof.go +++ b/types/share_proof.go @@ -72,7 +72,7 @@ func (sp ShareProof) Validate(root []byte) error { numberOfSharesInProofs := int32(0) for _, proof := range sp.ShareProofs { // the range is not inclusive from the left. - numberOfSharesInProofs = proof.End - proof.Start + numberOfSharesInProofs += proof.End - proof.Start } if len(sp.ShareProofs) != len(sp.RowProof.RowRoots) {