MCPcopy Create free account
hub / github.com/NextDotID/proof_server / IsOutdated

Method IsOutdated

model/proof.go:47–49  ·  view source on GitHub ↗

IsOutdated returns true if proof is outdated and should do a revalidate.

()

Source from the content-addressed store, hash-verified

45
46// IsOutdated returns true if proof is outdated and should do a revalidate.
47func (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")`.

Callers 2

proofExistsFunction · 0.95
performProofQueryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected