You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,15 @@
4
4
5
5
- fix: do not subtract the replica permitted clock drift when calculating the ingress expiry.
6
6
- fix: pick the expiry rounding strategy based on the delta, without adding the clock drift to the delta.
7
-
- feat: adds a `clockDriftMs` optional parameter to `Expiry.fromDeltaInMilliseconds` to add to the current time, typically used to specify the clock drift between the client's clock and the IC network clock.
8
-
- fix: add declaration maps and typescript source code to published packages
7
+
- feat: adds a `clockDriftMs` optional parameter to `Expiry.fromDeltaInMilliseconds` to add to the current time, typically used to specify the clock drift between the IC network clock and the client's clock.
8
+
- fix: add declaration maps and typescript source code to published packages.
9
9
- feat: enables type inference for the arguments and return types of `FuncClass`.
10
10
- feat: enables type inference for the fields of `ServiceClass`.
11
11
- fix: perform the canister range checks unconditionally for delegations when constructing a `Certificate` instance.
12
+
- fix: account for clock drift when verifying the certificate freshness, and syncs time with the IC network if the certificate fails the freshness check and the agent's time is not already synced.
13
+
- feat: adds the `agent` optional field to the `CreateCertificateOptions` interface, which is used to sync time with the IC network if the certificate fails the freshness check, if provided.
14
+
- feat: adds the `getTimeDiffMsecs` method to the `HttpAgent` class, which returns the time difference in milliseconds between the IC network clock and the client's clock.
15
+
- feat: adds the `hasSyncedTime` method to the `HttpAgent` class, which returns `true` if the time has been synced at least once with the IC network, `false` otherwise.
Copy file name to clipboardExpand all lines: packages/agent/src/agent/http/transforms.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ export class Expiry {
38
38
* If the delta is less than 90 seconds, the expiry is rounded down to the nearest second.
39
39
* Otherwise, the expiry is rounded down to the nearest minute.
40
40
* @param deltaInMs The milliseconds to add to the current time.
41
-
* @param clockDriftMs The milliseconds to add to the current time, typically the clock drift between the client and the IC network clock. Defaults to `0` if not provided.
41
+
* @param clockDriftMs The milliseconds to add to the current time, typically the clock drift between IC network clock and the client's clock. Defaults to `0` if not provided.
42
42
* @returns {Expiry} The constructed Expiry object.
0 commit comments