diff --git a/state/validation.go b/state/validation.go index 18608ab2c..e1e577e5c 100644 --- a/state/validation.go +++ b/state/validation.go @@ -132,12 +132,14 @@ func validateBlock(evidencePool EvidencePool, stateDB dbm.DB, state State, block // Validate all evidence. for _, ev := range block.Evidence.Evidence { + if evidencePool != nil { + if evidencePool.IsCommitted(ev) { + return types.NewErrEvidenceInvalid(ev, errors.New("evidence was already committed")) + } + } if err := VerifyEvidence(stateDB, state, ev, &block.Header); err != nil { return types.NewErrEvidenceInvalid(ev, err) } - if evidencePool != nil && evidencePool.IsCommitted(ev) { - return types.NewErrEvidenceInvalid(ev, errors.New("evidence was already committed")) - } } // NOTE: We can't actually verify it's the right proposer because we dont