Skip to content

Commit

Permalink
Redundant write on EigenDA failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi authored and Inkvi committed Oct 7, 2024
1 parent 723478e commit bb354f7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions store/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package store

import (
"bytes"
"context"
"errors"
"fmt"
Expand Down Expand Up @@ -229,8 +230,13 @@ func (r *Router) multiSourceRead(ctx context.Context, commitment []byte, fallbac
continue
}

// verify cert:data using EigenDA verification checks
err = r.eigenda.Verify(commitment, data)
if bytes.Equal(key, commitment) {
err = src.Verify(commitment, data)
} else {
// verify cert:data using EigenDA verification checks
err = r.eigenda.Verify(commitment, data)
}

if err != nil {
log.Warn("Failed to verify blob", "err", err, "backend", src.BackendType())
continue
Expand Down

0 comments on commit bb354f7

Please sign in to comment.