@aztec/prover-node 0.0.1-commit.d1f2d6c → 0.0.1-commit.e61ad554
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.
|
@@ -686,7 +686,7 @@ _dec = trackSpan('EpochProvingJob.run', function() {
|
|
|
686
686
|
const intervalMs = Math.ceil((await l2BlockSource.getL1Constants()).ethereumSlotDuration / 2) * 1000;
|
|
687
687
|
this.epochCheckPromise = new RunningPromise(async ()=>{
|
|
688
688
|
const blockHeaders = await l2BlockSource.getCheckpointedBlockHeadersForEpoch(this.epochNumber);
|
|
689
|
-
const blockHashes = await Promise.all(blockHeaders.map((header)=>header.hash()));
|
|
689
|
+
const blockHashes = await Promise.all(blockHeaders.map(async (header)=>(await header.hash()).toField()));
|
|
690
690
|
const thisBlocks = this.checkpoints.flatMap((checkpoint)=>checkpoint.blocks);
|
|
691
691
|
const thisBlockHashes = await Promise.all(thisBlocks.map((block)=>block.hash()));
|
|
692
692
|
if (blockHeaders.length !== thisBlocks.length || !blockHashes.every((block, i)=>block.equals(thisBlockHashes[i]))) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-node",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.e61ad554",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -56,27 +56,27 @@
|
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@aztec/archiver": "0.0.1-commit.
|
|
60
|
-
"@aztec/bb-prover": "0.0.1-commit.
|
|
61
|
-
"@aztec/blob-client": "0.0.1-commit.
|
|
62
|
-
"@aztec/blob-lib": "0.0.1-commit.
|
|
63
|
-
"@aztec/constants": "0.0.1-commit.
|
|
64
|
-
"@aztec/epoch-cache": "0.0.1-commit.
|
|
65
|
-
"@aztec/ethereum": "0.0.1-commit.
|
|
66
|
-
"@aztec/foundation": "0.0.1-commit.
|
|
67
|
-
"@aztec/kv-store": "0.0.1-commit.
|
|
68
|
-
"@aztec/l1-artifacts": "0.0.1-commit.
|
|
69
|
-
"@aztec/node-keystore": "0.0.1-commit.
|
|
70
|
-
"@aztec/node-lib": "0.0.1-commit.
|
|
71
|
-
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.
|
|
72
|
-
"@aztec/p2p": "0.0.1-commit.
|
|
73
|
-
"@aztec/protocol-contracts": "0.0.1-commit.
|
|
74
|
-
"@aztec/prover-client": "0.0.1-commit.
|
|
75
|
-
"@aztec/sequencer-client": "0.0.1-commit.
|
|
76
|
-
"@aztec/simulator": "0.0.1-commit.
|
|
77
|
-
"@aztec/stdlib": "0.0.1-commit.
|
|
78
|
-
"@aztec/telemetry-client": "0.0.1-commit.
|
|
79
|
-
"@aztec/world-state": "0.0.1-commit.
|
|
59
|
+
"@aztec/archiver": "0.0.1-commit.e61ad554",
|
|
60
|
+
"@aztec/bb-prover": "0.0.1-commit.e61ad554",
|
|
61
|
+
"@aztec/blob-client": "0.0.1-commit.e61ad554",
|
|
62
|
+
"@aztec/blob-lib": "0.0.1-commit.e61ad554",
|
|
63
|
+
"@aztec/constants": "0.0.1-commit.e61ad554",
|
|
64
|
+
"@aztec/epoch-cache": "0.0.1-commit.e61ad554",
|
|
65
|
+
"@aztec/ethereum": "0.0.1-commit.e61ad554",
|
|
66
|
+
"@aztec/foundation": "0.0.1-commit.e61ad554",
|
|
67
|
+
"@aztec/kv-store": "0.0.1-commit.e61ad554",
|
|
68
|
+
"@aztec/l1-artifacts": "0.0.1-commit.e61ad554",
|
|
69
|
+
"@aztec/node-keystore": "0.0.1-commit.e61ad554",
|
|
70
|
+
"@aztec/node-lib": "0.0.1-commit.e61ad554",
|
|
71
|
+
"@aztec/noir-protocol-circuits-types": "0.0.1-commit.e61ad554",
|
|
72
|
+
"@aztec/p2p": "0.0.1-commit.e61ad554",
|
|
73
|
+
"@aztec/protocol-contracts": "0.0.1-commit.e61ad554",
|
|
74
|
+
"@aztec/prover-client": "0.0.1-commit.e61ad554",
|
|
75
|
+
"@aztec/sequencer-client": "0.0.1-commit.e61ad554",
|
|
76
|
+
"@aztec/simulator": "0.0.1-commit.e61ad554",
|
|
77
|
+
"@aztec/stdlib": "0.0.1-commit.e61ad554",
|
|
78
|
+
"@aztec/telemetry-client": "0.0.1-commit.e61ad554",
|
|
79
|
+
"@aztec/world-state": "0.0.1-commit.e61ad554",
|
|
80
80
|
"source-map-support": "^0.5.21",
|
|
81
81
|
"tslib": "^2.4.0",
|
|
82
82
|
"viem": "npm:@aztec/viem@2.38.2"
|
|
@@ -363,7 +363,7 @@ export class EpochProvingJob implements Traceable {
|
|
|
363
363
|
this.epochCheckPromise = new RunningPromise(
|
|
364
364
|
async () => {
|
|
365
365
|
const blockHeaders = await l2BlockSource.getCheckpointedBlockHeadersForEpoch(this.epochNumber);
|
|
366
|
-
const blockHashes = await Promise.all(blockHeaders.map(header => header.hash()));
|
|
366
|
+
const blockHashes = await Promise.all(blockHeaders.map(async header => (await header.hash()).toField()));
|
|
367
367
|
const thisBlocks = this.checkpoints.flatMap(checkpoint => checkpoint.blocks);
|
|
368
368
|
const thisBlockHashes = await Promise.all(thisBlocks.map(block => block.hash()));
|
|
369
369
|
if (
|