IsOutdated returns true if proof is outdated and should do a revalidate.
()
| 45 | |
| 46 | // IsOutdated returns true if proof is outdated and should do a revalidate. |
| 47 | func (proof *Proof) IsOutdated() bool { |
| 48 | return proof.LastCheckedAt.Add(EXPIRED_IN).Before(time.Now()) |
| 49 | } |
| 50 | |
| 51 | // Revalidate validates current proof, will update `IsValid` and |
| 52 | // `LastCheckedAt`. Must be used after `DB.Preload("ProofChain")`. |
no outgoing calls
no test coverage detected