Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(taiko-client): change guardian provers to directly submit proofs instead of contests #17069

Merged
merged 15 commits into from
May 14, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (s *ProofSubmitter) SubmitProof(
if err != nil {
return err
}
if proofStatus.IsSubmitted {
if proofStatus.IsSubmitted && !proofStatus.Invalid {
return nil
}

Expand All @@ -170,14 +170,14 @@ func (s *ProofSubmitter) SubmitProof(
if err != nil {
return err
}
// TODO: Need to check if there will be performance issues while using simple time.Sleep()
time.Sleep(submissionDelay)
delayTimer := time.After(submissionDelay)
davidtaikocha marked this conversation as resolved.
Show resolved Hide resolved
<-delayTimer
// Check again.
davidtaikocha marked this conversation as resolved.
Show resolved Hide resolved
proofStatus, err := rpc.GetBlockProofStatus(ctx, s.rpc, proofWithHeader.BlockID, s.proverAddress)
if err != nil {
return err
}
if proofStatus.IsSubmitted {
if proofStatus.IsSubmitted && !proofStatus.Invalid {
return nil
}
}
Expand Down
Loading