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

Commit

Permalink
feat(prover): remove submission delay when running as a system prover (
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha authored May 13, 2023
1 parent 463d767 commit 49a25dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prover/proof_producer/special_proof_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ func (p *SpecialProofProducer) RequestProof(
now = time.Now()
blockTime = time.Unix(int64(block.Time()), 0)
)
if now.Before(blockTime.Add(p.proofTimeTarget)) {
if !p.isSystemProver && now.Before(blockTime.Add(p.proofTimeTarget)) {
delay = blockTime.Add(p.proofTimeTarget).Sub(now)
}

log.Info("Oracle proof submission delay", "delay", delay)
log.Info("Proof submission delay", "delay", delay, "isSystemProver", p.isSystemProver)

time.AfterFunc(delay, func() {
resultCh <- &ProofWithHeader{
Expand Down

0 comments on commit 49a25dd

Please sign in to comment.