diff --git a/pkg/proof/querier.go b/pkg/proof/querier.go index 92798ed6bc..9350a6139e 100644 --- a/pkg/proof/querier.go +++ b/pkg/proof/querier.go @@ -133,7 +133,7 @@ func ParseNamespace(rawShares []shares.Share, startShare, endShare int) (appns.N return appns.Namespace{}, fmt.Errorf("end share %d cannot be lower than starting share %d", endShare, startShare) } - if endShare >= len(rawShares) { + if endShare > len(rawShares) { return appns.Namespace{}, fmt.Errorf("end share %d is higher than block shares %d", endShare, len(rawShares)) }