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

Commit

Permalink
unnecessary statement
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Jul 12, 2023
1 parent e10ae42 commit a1c9259
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,6 @@ func (p *Prover) onBlockProposed(
}

if !skipProofWindowExpiredCheck {
if block.AssignedProver == zeroAddress {
// anyone can prove, dont need to check the proofWindowExpired
}

proofWindowExpired := uint64(time.Now().Unix()) > block.ProposedAt+block.ProofWindow
// zero address means anyone can prove, proofWindowExpired means anyone can prove even if not zero address
if block.AssignedProver != p.proverAddress && block.AssignedProver != zeroAddress && !proofWindowExpired {
Expand Down

0 comments on commit a1c9259

Please sign in to comment.