From a1c9259ae169615d90fe137421bbfdc8c48492f2 Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Wed, 12 Jul 2023 11:40:30 -0700 Subject: [PATCH] unnecessary statement --- prover/prover.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/prover/prover.go b/prover/prover.go index 6d58426ea..5465d38ec 100644 --- a/prover/prover.go +++ b/prover/prover.go @@ -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 {