@aztec/prover-node 0.86.0-nightly.20250512 → 0.86.0-starknet.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combined-prover-coordination.d.ts","sourceRoot":"","sources":["../../src/prover-coordination/combined-prover-coordination.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IAExC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qCAAqC,EAAE,MAAM,CAAC;CAC/C,CAAC;AASF,MAAM,WAAW,QAAQ;IACvB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;CAC/D;AAsCD,qBAAa,0BAA2B,YAAW,kBAAkB;;aAEjD,GAAG,EAAE,GAAG,GAAG,SAAS;aACpB,UAAU,EAAE,QAAQ,EAAE;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAIxB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBANJ,GAAG,EAAE,GAAG,GAAG,SAAS,EACpB,UAAU,EAAE,QAAQ,EAAE,EACrB,OAAO,GAAE,2BAGzB,EACgB,GAAG,yCAA2D;IAG1E,YAAY,IAAI,SAAS,GAAG,SAAS;IAI/B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,EAAE,CAAC;IAY/C,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"combined-prover-coordination.d.ts","sourceRoot":"","sources":["../../src/prover-coordination/combined-prover-coordination.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,MAAM,2BAA2B,GAAG;IAExC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qCAAqC,EAAE,MAAM,CAAC;CAC/C,CAAC;AASF,MAAM,WAAW,QAAQ;IACvB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;CAC/D;AAsCD,qBAAa,0BAA2B,YAAW,kBAAkB;;aAEjD,GAAG,EAAE,GAAG,GAAG,SAAS;aACpB,UAAU,EAAE,QAAQ,EAAE;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAIxB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBANJ,GAAG,EAAE,GAAG,GAAG,SAAS,EACpB,UAAU,EAAE,QAAQ,EAAE,EACrB,OAAO,GAAE,2BAGzB,EACgB,GAAG,yCAA2D;IAG1E,YAAY,IAAI,SAAS,GAAG,SAAS;IAI/B,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,EAAE,EAAE,CAAC;IAY/C,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAyE1D"}
|
|
@@ -90,16 +90,13 @@ export class CombinedProverCoordination {
|
|
|
90
90
|
const foundFromP2P = await pool.getTxsByHash([
|
|
91
91
|
...txsToFind
|
|
92
92
|
].map((tx)=>TxHash.fromString(tx)));
|
|
93
|
-
// TODO(!!): test for this
|
|
94
|
-
// getTxsByHash returns undefined for transactions that are not found, so it must be filtered to find the true length
|
|
95
|
-
const foundFromP2PLength = foundFromP2P.filter((tx)=>!!tx).length;
|
|
96
93
|
const numFoundFromNodes = originalToFind - toFindFromP2P;
|
|
97
|
-
const numNotFound = toFindFromP2P -
|
|
94
|
+
const numNotFound = toFindFromP2P - foundFromP2P.length;
|
|
98
95
|
if (numNotFound === 0) {
|
|
99
|
-
this.log.info(`Found all ${originalToFind} txs. ${numFoundFromNodes} from nodes, ${
|
|
96
|
+
this.log.info(`Found all ${originalToFind} txs. ${numFoundFromNodes} from nodes, ${foundFromP2P.length} from p2p`);
|
|
100
97
|
return;
|
|
101
98
|
}
|
|
102
|
-
this.log.warn(`Failed to find ${numNotFound} txs from any source. Found ${
|
|
99
|
+
this.log.warn(`Failed to find ${numNotFound} txs from any source. Found ${foundFromP2P.length} from p2p and ${numFoundFromNodes} from nodes`);
|
|
103
100
|
}
|
|
104
101
|
async #gatherTxsFromAllNodes(txsToFind, pool) {
|
|
105
102
|
if (txsToFind.size === 0 || this.aztecNodes.length === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/prover-node",
|
|
3
|
-
"version": "0.86.0-
|
|
3
|
+
"version": "0.86.0-starknet.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -52,25 +52,25 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aztec/archiver": "0.86.0-
|
|
56
|
-
"@aztec/bb-prover": "0.86.0-
|
|
57
|
-
"@aztec/blob-sink": "0.86.0-
|
|
58
|
-
"@aztec/constants": "0.86.0-
|
|
59
|
-
"@aztec/epoch-cache": "0.86.0-
|
|
60
|
-
"@aztec/ethereum": "0.86.0-
|
|
61
|
-
"@aztec/foundation": "0.86.0-
|
|
62
|
-
"@aztec/kv-store": "0.86.0-
|
|
63
|
-
"@aztec/l1-artifacts": "0.86.0-
|
|
64
|
-
"@aztec/node-lib": "0.86.0-
|
|
65
|
-
"@aztec/noir-protocol-circuits-types": "0.86.0-
|
|
66
|
-
"@aztec/p2p": "0.86.0-
|
|
67
|
-
"@aztec/protocol-contracts": "0.86.0-
|
|
68
|
-
"@aztec/prover-client": "0.86.0-
|
|
69
|
-
"@aztec/sequencer-client": "0.86.0-
|
|
70
|
-
"@aztec/simulator": "0.86.0-
|
|
71
|
-
"@aztec/stdlib": "0.86.0-
|
|
72
|
-
"@aztec/telemetry-client": "0.86.0-
|
|
73
|
-
"@aztec/world-state": "0.86.0-
|
|
55
|
+
"@aztec/archiver": "0.86.0-starknet.1",
|
|
56
|
+
"@aztec/bb-prover": "0.86.0-starknet.1",
|
|
57
|
+
"@aztec/blob-sink": "0.86.0-starknet.1",
|
|
58
|
+
"@aztec/constants": "0.86.0-starknet.1",
|
|
59
|
+
"@aztec/epoch-cache": "0.86.0-starknet.1",
|
|
60
|
+
"@aztec/ethereum": "0.86.0-starknet.1",
|
|
61
|
+
"@aztec/foundation": "0.86.0-starknet.1",
|
|
62
|
+
"@aztec/kv-store": "0.86.0-starknet.1",
|
|
63
|
+
"@aztec/l1-artifacts": "0.86.0-starknet.1",
|
|
64
|
+
"@aztec/node-lib": "0.86.0-starknet.1",
|
|
65
|
+
"@aztec/noir-protocol-circuits-types": "0.86.0-starknet.1",
|
|
66
|
+
"@aztec/p2p": "0.86.0-starknet.1",
|
|
67
|
+
"@aztec/protocol-contracts": "0.86.0-starknet.1",
|
|
68
|
+
"@aztec/prover-client": "0.86.0-starknet.1",
|
|
69
|
+
"@aztec/sequencer-client": "0.86.0-starknet.1",
|
|
70
|
+
"@aztec/simulator": "0.86.0-starknet.1",
|
|
71
|
+
"@aztec/stdlib": "0.86.0-starknet.1",
|
|
72
|
+
"@aztec/telemetry-client": "0.86.0-starknet.1",
|
|
73
|
+
"@aztec/world-state": "0.86.0-starknet.1",
|
|
74
74
|
"source-map-support": "^0.5.21",
|
|
75
75
|
"tslib": "^2.4.0",
|
|
76
76
|
"viem": "2.23.7"
|
|
@@ -107,19 +107,16 @@ export class CombinedProverCoordination implements ProverCoordination {
|
|
|
107
107
|
const toFindFromP2P = txsToFind.size;
|
|
108
108
|
this.log.verbose(`Gathering ${toFindFromP2P} txs from p2p network`);
|
|
109
109
|
const foundFromP2P = await pool.getTxsByHash([...txsToFind].map(tx => TxHash.fromString(tx)));
|
|
110
|
-
|
|
111
|
-
// TODO(!!): test for this
|
|
112
|
-
// getTxsByHash returns undefined for transactions that are not found, so it must be filtered to find the true length
|
|
113
|
-
const foundFromP2PLength = foundFromP2P.filter(tx => !!tx).length;
|
|
114
|
-
|
|
115
110
|
const numFoundFromNodes = originalToFind - toFindFromP2P;
|
|
116
|
-
const numNotFound = toFindFromP2P -
|
|
111
|
+
const numNotFound = toFindFromP2P - foundFromP2P.length;
|
|
117
112
|
if (numNotFound === 0) {
|
|
118
|
-
this.log.info(
|
|
113
|
+
this.log.info(
|
|
114
|
+
`Found all ${originalToFind} txs. ${numFoundFromNodes} from nodes, ${foundFromP2P.length} from p2p`,
|
|
115
|
+
);
|
|
119
116
|
return;
|
|
120
117
|
}
|
|
121
118
|
this.log.warn(
|
|
122
|
-
`Failed to find ${numNotFound} txs from any source. Found ${
|
|
119
|
+
`Failed to find ${numNotFound} txs from any source. Found ${foundFromP2P.length} from p2p and ${numFoundFromNodes} from nodes`,
|
|
123
120
|
);
|
|
124
121
|
}
|
|
125
122
|
|