(params vtypes.Params, tier vtypes.VerificationTier)
| 1865 | } |
| 1866 | |
| 1867 | func 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 | |
| 1880 | func leaseCompletionWindowForTier(params vtypes.Params, tier vtypes.VerificationTier) time.Duration { |
| 1881 | return cleanHistoryWindowForTier(params, tier) |
no outgoing calls
no test coverage detected