MCPcopy Create free account
hub / github.com/akash-network/node / cleanHistoryWindowForTier

Function cleanHistoryWindowForTier

x/verification/keeper/msg.go:1867–1878  ·  view source on GitHub ↗
(params vtypes.Params, tier vtypes.VerificationTier)

Source from the content-addressed store, hash-verified

1865}
1866
1867func cleanHistoryWindowForTier(params vtypes.Params, tier vtypes.VerificationTier) time.Duration {
1868 switch tier {
1869 case vtypes.TierIdentified, vtypes.TierVerified:
1870 return 0
1871 case vtypes.TierEstablished:
1872 return params.CleanHistoryWindowL3
1873 case vtypes.TierTrusted:
1874 return params.CleanHistoryWindowL4
1875 default:
1876 panic("verification: unknown tier")
1877 }
1878}
1879
1880func leaseCompletionWindowForTier(params vtypes.Params, tier vtypes.VerificationTier) time.Duration {
1881 return cleanHistoryWindowForTier(params, tier)

Calls

no outgoing calls

Tested by

no test coverage detected