@aztec/epoch-cache 3.0.0-nightly.20251107 → 3.0.0-nightly.20251109
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/epoch_cache.js +1 -1
- package/package.json +5 -5
- package/src/epoch_cache.ts +1 -1
package/dest/epoch_cache.js
CHANGED
|
@@ -157,7 +157,7 @@ import { getEpochCacheConfigEnvVars } from './config.js';
|
|
|
157
157
|
const { lagInEpochs, epochDuration, slotDuration } = this.l1constants;
|
|
158
158
|
const sub = BigInt(lagInEpochs) * BigInt(epochDuration) * BigInt(slotDuration);
|
|
159
159
|
if (ts - sub > l1Timestamp) {
|
|
160
|
-
throw new Error(`Cannot query committee for future epoch ${epoch} with timestamp ${ts} (current L1 time is ${l1Timestamp})
|
|
160
|
+
throw new Error(`Cannot query committee for future epoch ${epoch} with timestamp ${ts} (current L1 time is ${l1Timestamp}). Check your Ethereum node is synced.`);
|
|
161
161
|
}
|
|
162
162
|
const committee = committeeHex?.map((v)=>EthAddress.fromString(v));
|
|
163
163
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/epoch-cache",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251109",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"../package.common.json"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
30
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
31
|
-
"@aztec/l1-artifacts": "3.0.0-nightly.
|
|
32
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
29
|
+
"@aztec/ethereum": "3.0.0-nightly.20251109",
|
|
30
|
+
"@aztec/foundation": "3.0.0-nightly.20251109",
|
|
31
|
+
"@aztec/l1-artifacts": "3.0.0-nightly.20251109",
|
|
32
|
+
"@aztec/stdlib": "3.0.0-nightly.20251109",
|
|
33
33
|
"@viem/anvil": "^0.0.10",
|
|
34
34
|
"dotenv": "^16.0.3",
|
|
35
35
|
"get-port": "^7.1.0",
|
package/src/epoch_cache.ts
CHANGED
|
@@ -204,7 +204,7 @@ export class EpochCache implements EpochCacheInterface {
|
|
|
204
204
|
const sub = BigInt(lagInEpochs) * BigInt(epochDuration) * BigInt(slotDuration);
|
|
205
205
|
if (ts - sub > l1Timestamp) {
|
|
206
206
|
throw new Error(
|
|
207
|
-
`Cannot query committee for future epoch ${epoch} with timestamp ${ts} (current L1 time is ${l1Timestamp})
|
|
207
|
+
`Cannot query committee for future epoch ${epoch} with timestamp ${ts} (current L1 time is ${l1Timestamp}). Check your Ethereum node is synced.`,
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
210
|
const committee = committeeHex?.map((v: `0x${string}`) => EthAddress.fromString(v));
|