@aztec/aztec-node 1.0.0-nightly.20250722 → 1.0.0-nightly.20250724
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/aztec-node/server.js +5 -5
- package/package.json +23 -23
- package/src/aztec-node/server.ts +5 -5
|
@@ -203,7 +203,7 @@ import { NodeMetrics } from './node_metrics.js';
|
|
|
203
203
|
const slasherL1Client = slasherPrivateKey?.getValue() && slasherPrivateKey.getValue() !== NULL_KEY ? createExtendedL1Client(l1RpcUrls, slasherPrivateKey.getValue(), ethereumChain.chainInfo) : getPublicClient(config);
|
|
204
204
|
const slasherL1TxUtils = isExtendedClient(slasherL1Client) ? new L1TxUtils(slasherL1Client, log, dateProvider, config) : undefined;
|
|
205
205
|
const slasherClient = await SlasherClient.new(config, config.l1Contracts, slasherL1TxUtils, slasherL1Client, watchers, dateProvider);
|
|
206
|
-
slasherClient.start();
|
|
206
|
+
await slasherClient.start();
|
|
207
207
|
// Validator enabled, create/start relevant service
|
|
208
208
|
let sequencer;
|
|
209
209
|
if (!config.disableValidator) {
|
|
@@ -383,7 +383,7 @@ import { NodeMetrics } from './node_metrics.js';
|
|
|
383
383
|
}
|
|
384
384
|
async #sendTx(tx) {
|
|
385
385
|
const timer = new Timer();
|
|
386
|
-
const txHash =
|
|
386
|
+
const txHash = tx.getTxHash().toString();
|
|
387
387
|
const valid = await this.isValidTx(tx);
|
|
388
388
|
if (valid.result !== 'valid') {
|
|
389
389
|
const reason = valid.reason.join(', ');
|
|
@@ -692,7 +692,7 @@ import { NodeMetrics } from './node_metrics.js';
|
|
|
692
692
|
if (txGasLimit + teardownGasLimit > this.config.rpcSimulatePublicMaxGasLimit) {
|
|
693
693
|
throw new BadRequestError(`Transaction total gas limit ${txGasLimit + teardownGasLimit} (${txGasLimit} + ${teardownGasLimit}) exceeds maximum gas limit ${this.config.rpcSimulatePublicMaxGasLimit} for simulation`);
|
|
694
694
|
}
|
|
695
|
-
const txHash =
|
|
695
|
+
const txHash = tx.getTxHash();
|
|
696
696
|
const blockNumber = await this.blockSource.getBlockNumber() + 1;
|
|
697
697
|
// If sequencer is not initialized, we just set these values to zero for simulation.
|
|
698
698
|
const coinbase = this.sequencer?.coinbase || EthAddress.ZERO;
|
|
@@ -886,7 +886,7 @@ import { NodeMetrics } from './node_metrics.js';
|
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
_ts_decorate([
|
|
889
|
-
trackSpan('AztecNodeService.simulatePublicCalls',
|
|
890
|
-
[Attributes.TX_HASH]:
|
|
889
|
+
trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
890
|
+
[Attributes.TX_HASH]: tx.getTxHash().toString()
|
|
891
891
|
}))
|
|
892
892
|
], AztecNodeService.prototype, "simulatePublicCalls", null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec-node",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250724",
|
|
4
4
|
"main": "dest/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -65,28 +65,28 @@
|
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@aztec/archiver": "1.0.0-nightly.
|
|
69
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
70
|
-
"@aztec/blob-sink": "1.0.0-nightly.
|
|
71
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
72
|
-
"@aztec/epoch-cache": "1.0.0-nightly.
|
|
73
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
74
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
75
|
-
"@aztec/kv-store": "1.0.0-nightly.
|
|
76
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
77
|
-
"@aztec/merkle-tree": "1.0.0-nightly.
|
|
78
|
-
"@aztec/node-lib": "1.0.0-nightly.
|
|
79
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
80
|
-
"@aztec/p2p": "1.0.0-nightly.
|
|
81
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
82
|
-
"@aztec/prover-client": "1.0.0-nightly.
|
|
83
|
-
"@aztec/sequencer-client": "1.0.0-nightly.
|
|
84
|
-
"@aztec/simulator": "1.0.0-nightly.
|
|
85
|
-
"@aztec/slasher": "1.0.0-nightly.
|
|
86
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
87
|
-
"@aztec/telemetry-client": "1.0.0-nightly.
|
|
88
|
-
"@aztec/validator-client": "1.0.0-nightly.
|
|
89
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
68
|
+
"@aztec/archiver": "1.0.0-nightly.20250724",
|
|
69
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250724",
|
|
70
|
+
"@aztec/blob-sink": "1.0.0-nightly.20250724",
|
|
71
|
+
"@aztec/constants": "1.0.0-nightly.20250724",
|
|
72
|
+
"@aztec/epoch-cache": "1.0.0-nightly.20250724",
|
|
73
|
+
"@aztec/ethereum": "1.0.0-nightly.20250724",
|
|
74
|
+
"@aztec/foundation": "1.0.0-nightly.20250724",
|
|
75
|
+
"@aztec/kv-store": "1.0.0-nightly.20250724",
|
|
76
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250724",
|
|
77
|
+
"@aztec/merkle-tree": "1.0.0-nightly.20250724",
|
|
78
|
+
"@aztec/node-lib": "1.0.0-nightly.20250724",
|
|
79
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250724",
|
|
80
|
+
"@aztec/p2p": "1.0.0-nightly.20250724",
|
|
81
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250724",
|
|
82
|
+
"@aztec/prover-client": "1.0.0-nightly.20250724",
|
|
83
|
+
"@aztec/sequencer-client": "1.0.0-nightly.20250724",
|
|
84
|
+
"@aztec/simulator": "1.0.0-nightly.20250724",
|
|
85
|
+
"@aztec/slasher": "1.0.0-nightly.20250724",
|
|
86
|
+
"@aztec/stdlib": "1.0.0-nightly.20250724",
|
|
87
|
+
"@aztec/telemetry-client": "1.0.0-nightly.20250724",
|
|
88
|
+
"@aztec/validator-client": "1.0.0-nightly.20250724",
|
|
89
|
+
"@aztec/world-state": "1.0.0-nightly.20250724",
|
|
90
90
|
"koa": "^2.16.1",
|
|
91
91
|
"koa-router": "^12.0.0",
|
|
92
92
|
"tslib": "^2.4.0",
|
package/src/aztec-node/server.ts
CHANGED
|
@@ -340,7 +340,7 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
|
|
|
340
340
|
watchers,
|
|
341
341
|
dateProvider,
|
|
342
342
|
);
|
|
343
|
-
slasherClient.start();
|
|
343
|
+
await slasherClient.start();
|
|
344
344
|
|
|
345
345
|
// Validator enabled, create/start relevant service
|
|
346
346
|
let sequencer: SequencerClient | undefined;
|
|
@@ -587,7 +587,7 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
|
|
|
587
587
|
|
|
588
588
|
async #sendTx(tx: Tx) {
|
|
589
589
|
const timer = new Timer();
|
|
590
|
-
const txHash =
|
|
590
|
+
const txHash = tx.getTxHash().toString();
|
|
591
591
|
|
|
592
592
|
const valid = await this.isValidTx(tx);
|
|
593
593
|
if (valid.result !== 'valid') {
|
|
@@ -978,8 +978,8 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
|
|
|
978
978
|
* Simulates the public part of a transaction with the current state.
|
|
979
979
|
* @param tx - The transaction to simulate.
|
|
980
980
|
**/
|
|
981
|
-
@trackSpan('AztecNodeService.simulatePublicCalls',
|
|
982
|
-
[Attributes.TX_HASH]:
|
|
981
|
+
@trackSpan('AztecNodeService.simulatePublicCalls', (tx: Tx) => ({
|
|
982
|
+
[Attributes.TX_HASH]: tx.getTxHash().toString(),
|
|
983
983
|
}))
|
|
984
984
|
public async simulatePublicCalls(tx: Tx, skipFeeEnforcement = false): Promise<PublicSimulationOutput> {
|
|
985
985
|
// Check total gas limit for simulation
|
|
@@ -996,7 +996,7 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
|
|
|
996
996
|
);
|
|
997
997
|
}
|
|
998
998
|
|
|
999
|
-
const txHash =
|
|
999
|
+
const txHash = tx.getTxHash();
|
|
1000
1000
|
const blockNumber = (await this.blockSource.getBlockNumber()) + 1;
|
|
1001
1001
|
|
|
1002
1002
|
// If sequencer is not initialized, we just set these values to zero for simulation.
|