Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
feat: update check
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Apr 18, 2024
1 parent 8bd18d3 commit 8882296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prover/proof_submitter/transaction/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ func (s *Sender) Send(
if err != nil {
return err
}
if proofStatus.IsSubmitted {
return fmt.Errorf("proof for block %d is already submitted", proofWithHeader.BlockID)
if proofStatus.IsSubmitted && !proofStatus.Invalid {
return fmt.Errorf("a valid proof for block %d is already submitted", proofWithHeader.BlockID)
}

// Check if this proof is still needed to be submitted.
Expand Down

0 comments on commit 8882296

Please sign in to comment.