Skip to content

Commit

Permalink
Update utils/proofs/proofs.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
joe-bowman and coderabbitai[bot] authored Nov 14, 2024
1 parent 6d77ad9 commit 3ad856d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/proofs/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ func (p *CelestiaProof) Validate(dataHash []byte, txHash string) ([]byte, error)
if err != nil {
return nil, fmt.Errorf("unable to parse txs from shareProof: %w", err)
}
if len(txs) == 0 {
return nil, fmt.Errorf("no transactions found in shares")
}

if !shareProof.VerifyProof() {
return nil, fmt.Errorf("share proof failed to verify")
Expand Down

0 comments on commit 3ad856d

Please sign in to comment.