@aztec/aztec-node 0.0.1-commit.1142ef1 → 0.0.1-commit.1bea0213

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.
@@ -374,7 +374,6 @@ var _dec, _initProto;
374
374
  import { createArchiver } from '@aztec/archiver';
375
375
  import { BBCircuitVerifier, QueuedIVCVerifier, TestCircuitVerifier } from '@aztec/bb-prover';
376
376
  import { createBlobClientWithFileStores } from '@aztec/blob-client/client';
377
- import { INITIAL_L2_BLOCK_NUM } from '@aztec/constants';
378
377
  import { EpochCache } from '@aztec/epoch-cache';
379
378
  import { createEthereumChain } from '@aztec/ethereum/chain';
380
379
  import { getPublicClient } from '@aztec/ethereum/client';
@@ -393,12 +392,12 @@ import { trySnapshotSync, uploadSnapshot } from '@aztec/node-lib/actions';
393
392
  import { createForwarderL1TxUtilsFromEthSigner, createL1TxUtilsWithBlobsFromEthSigner } from '@aztec/node-lib/factories';
394
393
  import { createP2PClient, getDefaultAllowedSetupFunctions } from '@aztec/p2p';
395
394
  import { ProtocolContractAddress } from '@aztec/protocol-contracts';
396
- import { BlockBuilder, GlobalVariableBuilder, SequencerClient } from '@aztec/sequencer-client';
395
+ import { GlobalVariableBuilder, SequencerClient } from '@aztec/sequencer-client';
397
396
  import { PublicProcessorFactory } from '@aztec/simulator/server';
398
397
  import { AttestationsBlockWatcher, EpochPruneWatcher, createSlasher } from '@aztec/slasher';
399
398
  import { CollectionLimitsConfig, PublicSimulatorConfig } from '@aztec/stdlib/avm';
400
399
  import { AztecAddress } from '@aztec/stdlib/aztec-address';
401
- import { L2BlockHash } from '@aztec/stdlib/block';
400
+ import { BlockHash, L2Block } from '@aztec/stdlib/block';
402
401
  import { GasFees } from '@aztec/stdlib/gas';
403
402
  import { computePublicDataTreeLeafSlot } from '@aztec/stdlib/hash';
404
403
  import { AztecNodeAdminConfigSchema } from '@aztec/stdlib/interfaces/client';
@@ -451,6 +450,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
451
450
  ], []));
452
451
  }
453
452
  metrics;
453
+ initialHeaderHashPromise;
454
454
  // Prevent two snapshot operations to happen simultaneously
455
455
  isUploadingSnapshot;
456
456
  tracer;
@@ -475,7 +475,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
475
475
  this.telemetry = telemetry;
476
476
  this.log = log;
477
477
  this.blobClient = blobClient;
478
- this.isUploadingSnapshot = (_initProto(this), false);
478
+ this.initialHeaderHashPromise = (_initProto(this), undefined);
479
+ this.isUploadingSnapshot = false;
479
480
  this.metrics = new NodeMetrics(telemetry, 'AztecNodeService');
480
481
  this.tracer = telemetry.getTracer('AztecNodeService');
481
482
  this.log.info(`Aztec Node version: ${this.packageVersion}`);
@@ -576,22 +577,16 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
576
577
  const p2pClient = await createP2PClient(P2PClientType.Full, config, archiver, proofVerifier, worldStateSynchronizer, epochCache, packageVersion, dateProvider, telemetry, deps.p2pClientDeps);
577
578
  // We should really not be modifying the config object
578
579
  config.txPublicSetupAllowList = config.txPublicSetupAllowList ?? await getDefaultAllowedSetupFunctions();
579
- // Create BlockBuilder for EpochPruneWatcher (slasher functionality)
580
- const blockBuilder = new BlockBuilder({
581
- ...config,
582
- l1GenesisTime,
583
- slotDuration: Number(slotDuration)
584
- }, worldStateSynchronizer, archiver, dateProvider, telemetry);
585
580
  // Create FullNodeCheckpointsBuilder for validator and non-validator block proposal handling
586
581
  const validatorCheckpointsBuilder = new FullNodeCheckpointsBuilder({
587
582
  ...config,
588
583
  l1GenesisTime,
589
584
  slotDuration: Number(slotDuration)
590
- }, archiver, dateProvider, telemetry);
585
+ }, worldStateSynchronizer, archiver, dateProvider, telemetry);
591
586
  // We'll accumulate sentinel watchers here
592
587
  const watchers = [];
593
588
  // Create validator client if required
594
- const validatorClient = createValidatorClient(config, {
589
+ const validatorClient = await createValidatorClient(config, {
595
590
  checkpointsBuilder: validatorCheckpointsBuilder,
596
591
  worldState: worldStateSynchronizer,
597
592
  p2pClient,
@@ -637,7 +632,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
637
632
  }
638
633
  let epochPruneWatcher;
639
634
  if (config.slashPrunePenalty > 0n || config.slashDataWithholdingPenalty > 0n) {
640
- epochPruneWatcher = new EpochPruneWatcher(archiver, archiver, epochCache, p2pClient.getTxProvider(), blockBuilder, config);
635
+ epochPruneWatcher = new EpochPruneWatcher(archiver, archiver, epochCache, p2pClient.getTxProvider(), validatorCheckpointsBuilder, config);
641
636
  watchers.push(epochPruneWatcher);
642
637
  }
643
638
  // We assume we want to slash for invalid attestations unless all max penalties are set to 0
@@ -683,7 +678,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
683
678
  ...config,
684
679
  l1GenesisTime,
685
680
  slotDuration: Number(slotDuration)
686
- }, archiver, dateProvider, telemetry);
681
+ }, worldStateSynchronizer, archiver, dateProvider, telemetry);
687
682
  sequencer = await SequencerClient.new(config, {
688
683
  ...deps,
689
684
  epochCache,
@@ -768,28 +763,40 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
768
763
  return nodeInfo;
769
764
  }
770
765
  /**
771
- * Get a block specified by its number.
772
- * @param number - The block number being requested.
766
+ * Get a block specified by its block number, block hash, or 'latest'.
767
+ * @param block - The block parameter (block number, block hash, or 'latest').
773
768
  * @returns The requested block.
774
- */ async getBlock(number) {
775
- const blockNumber = number === 'latest' ? await this.getBlockNumber() : number;
776
- return await this.blockSource.getBlock(blockNumber);
769
+ */ async getBlock(block) {
770
+ if (BlockHash.isL2BlockHash(block)) {
771
+ return this.getBlockByHash(Fr.fromBuffer(block.toBuffer()));
772
+ }
773
+ const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
774
+ if (blockNumber === BlockNumber.ZERO) {
775
+ return this.buildInitialBlock();
776
+ }
777
+ return await this.blockSource.getL2Block(blockNumber);
777
778
  }
778
779
  /**
779
780
  * Get a block specified by its hash.
780
781
  * @param blockHash - The block hash being requested.
781
782
  * @returns The requested block.
782
783
  */ async getBlockByHash(blockHash) {
783
- const publishedBlock = await this.blockSource.getPublishedBlockByHash(blockHash);
784
- return publishedBlock?.block;
784
+ const initialBlockHash = await this.#getInitialHeaderHash();
785
+ if (blockHash.equals(Fr.fromBuffer(initialBlockHash.toBuffer()))) {
786
+ return this.buildInitialBlock();
787
+ }
788
+ return await this.blockSource.getL2BlockByHash(blockHash);
789
+ }
790
+ buildInitialBlock() {
791
+ const initialHeader = this.worldStateSynchronizer.getCommitted().getInitialHeader();
792
+ return L2Block.empty(initialHeader);
785
793
  }
786
794
  /**
787
795
  * Get a block specified by its archive root.
788
796
  * @param archive - The archive root being requested.
789
797
  * @returns The requested block.
790
798
  */ async getBlockByArchive(archive) {
791
- const publishedBlock = await this.blockSource.getPublishedBlockByArchive(archive);
792
- return publishedBlock?.block;
799
+ return await this.blockSource.getL2BlockByArchive(archive);
793
800
  }
794
801
  /**
795
802
  * Method to request blocks. Will attempt to return all requested blocks but will return only those available.
@@ -797,19 +804,13 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
797
804
  * @param limit - The maximum number of blocks to obtain.
798
805
  * @returns The blocks requested.
799
806
  */ async getBlocks(from, limit) {
800
- return await this.blockSource.getBlocks(from, limit) ?? [];
801
- }
802
- async getPublishedBlocks(from, limit) {
803
- return await this.blockSource.getPublishedBlocks(from, limit) ?? [];
807
+ return await this.blockSource.getBlocks(from, BlockNumber(limit)) ?? [];
804
808
  }
805
- async getPublishedCheckpoints(from, limit) {
806
- return await this.blockSource.getPublishedCheckpoints(from, limit) ?? [];
809
+ async getCheckpoints(from, limit) {
810
+ return await this.blockSource.getCheckpoints(from, limit) ?? [];
807
811
  }
808
- async getL2BlocksNew(from, limit) {
809
- return await this.blockSource.getL2BlocksNew(from, limit) ?? [];
810
- }
811
- async getCheckpointedBlocks(from, limit, proven) {
812
- return await this.blockSource.getCheckpointedBlocks(from, limit, proven) ?? [];
812
+ async getCheckpointedBlocks(from, limit) {
813
+ return await this.blockSource.getCheckpointedBlocks(from, limit) ?? [];
813
814
  }
814
815
  /**
815
816
  * Method to fetch the current min L2 fees.
@@ -835,6 +836,9 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
835
836
  async getProvenBlockNumber() {
836
837
  return await this.blockSource.getProvenBlockNumber();
837
838
  }
839
+ async getCheckpointedBlockNumber() {
840
+ return await this.blockSource.getCheckpointedL2BlockNumber();
841
+ }
838
842
  /**
839
843
  * Method to fetch the version of the package.
840
844
  * @returns The node package version
@@ -859,11 +863,31 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
859
863
  getContract(address) {
860
864
  return this.contractDataSource.getContract(address);
861
865
  }
862
- getPrivateLogsByTags(tags) {
863
- return this.logsSource.getPrivateLogsByTags(tags);
864
- }
865
- getPublicLogsByTagsFromContract(contractAddress, tags) {
866
- return this.logsSource.getPublicLogsByTagsFromContract(contractAddress, tags);
866
+ async getPrivateLogsByTags(tags, page, referenceBlock) {
867
+ if (referenceBlock) {
868
+ const initialBlockHash = await this.#getInitialHeaderHash();
869
+ if (!referenceBlock.equals(initialBlockHash)) {
870
+ const blockHashFr = Fr.fromBuffer(referenceBlock.toBuffer());
871
+ const header = await this.blockSource.getBlockHeaderByHash(blockHashFr);
872
+ if (!header) {
873
+ throw new Error(`Block ${referenceBlock.toString()} not found in the node. This might indicate a reorg has occurred.`);
874
+ }
875
+ }
876
+ }
877
+ return this.logsSource.getPrivateLogsByTags(tags, page);
878
+ }
879
+ async getPublicLogsByTagsFromContract(contractAddress, tags, page, referenceBlock) {
880
+ if (referenceBlock) {
881
+ const initialBlockHash = await this.#getInitialHeaderHash();
882
+ if (!referenceBlock.equals(initialBlockHash)) {
883
+ const blockHashFr = Fr.fromBuffer(referenceBlock.toBuffer());
884
+ const header = await this.blockSource.getBlockHeaderByHash(blockHashFr);
885
+ if (!header) {
886
+ throw new Error(`Block ${referenceBlock.toString()} not found in the node. This might indicate a reorg has occurred.`);
887
+ }
888
+ }
889
+ }
890
+ return this.logsSource.getPublicLogsByTagsFromContract(contractAddress, tags, page);
867
891
  }
868
892
  /**
869
893
  * Gets public logs based on the provided filter.
@@ -904,18 +928,24 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
904
928
  });
905
929
  }
906
930
  async getTxReceipt(txHash) {
907
- let txReceipt = new TxReceipt(txHash, TxStatus.DROPPED, 'Tx dropped by P2P node.');
908
- // We first check if the tx is in pending (instead of first checking if it is mined) because if we first check
909
- // for mined and then for pending there could be a race condition where the tx is mined between the two checks
910
- // and we would incorrectly return a TxReceipt with status DROPPED
911
- if (await this.p2pClient.getTxStatus(txHash) === 'pending') {
912
- txReceipt = new TxReceipt(txHash, TxStatus.PENDING, '');
913
- }
931
+ // Check the tx pool status first. If the tx is known to the pool (pending or mined), we'll use that
932
+ // as a fallback if we don't find a settled receipt in the archiver.
933
+ const txPoolStatus = await this.p2pClient.getTxStatus(txHash);
934
+ const isKnownToPool = txPoolStatus === 'pending' || txPoolStatus === 'mined';
935
+ // Then get the actual tx from the archiver, which tracks every tx in a mined block.
914
936
  const settledTxReceipt = await this.blockSource.getSettledTxReceipt(txHash);
915
937
  if (settledTxReceipt) {
916
- txReceipt = settledTxReceipt;
938
+ // If the archiver has the receipt then return it.
939
+ return settledTxReceipt;
940
+ } else if (isKnownToPool) {
941
+ // If the tx is in the pool but not in the archiver, it's pending.
942
+ // This handles race conditions between archiver and p2p, where the archiver
943
+ // has pruned the block in which a tx was mined, but p2p has not caught up yet.
944
+ return new TxReceipt(txHash, TxStatus.PENDING, undefined, undefined);
945
+ } else {
946
+ // Otherwise, if we don't know the tx, we consider it dropped.
947
+ return new TxReceipt(txHash, TxStatus.DROPPED, undefined, 'Tx dropped by P2P node');
917
948
  }
918
- return txReceipt;
919
949
  }
920
950
  getTxEffect(txHash) {
921
951
  return this.blockSource.getTxEffect(txHash);
@@ -967,15 +997,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
967
997
  */ async getTxsByHash(txHashes) {
968
998
  return compactArray(await Promise.all(txHashes.map((txHash)=>this.getTxByHash(txHash))));
969
999
  }
970
- /**
971
- * Find the indexes of the given leaves in the given tree along with a block metadata pointing to the block in which
972
- * the leaves were inserted.
973
- * @param blockNumber - The block number at which to get the data or 'latest' for latest data.
974
- * @param treeId - The tree to search in.
975
- * @param leafValues - The values to search for.
976
- * @returns The indices of leaves and the block metadata of a block in which the leaves were inserted.
977
- */ async findLeavesIndexes(blockNumber, treeId, leafValues) {
978
- const committedDb = await this.#getWorldState(blockNumber);
1000
+ async findLeavesIndexes(block, treeId, leafValues) {
1001
+ const committedDb = await this.#getWorldState(block);
979
1002
  const maybeIndices = await committedDb.findLeafIndices(treeId, leafValues.map((x)=>x.toBuffer()));
980
1003
  // We filter out undefined values
981
1004
  const indices = maybeIndices.filter((x)=>x !== undefined);
@@ -1018,50 +1041,35 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1018
1041
  }
1019
1042
  return {
1020
1043
  l2BlockNumber: BlockNumber(Number(blockNumber)),
1021
- l2BlockHash: L2BlockHash.fromField(blockHash),
1044
+ l2BlockHash: BlockHash.fromField(blockHash),
1022
1045
  data: index
1023
1046
  };
1024
1047
  });
1025
1048
  }
1026
- /**
1027
- * Returns a sibling path for the given index in the nullifier tree.
1028
- * @param blockNumber - The block number at which to get the data.
1029
- * @param leafIndex - The index of the leaf for which the sibling path is required.
1030
- * @returns The sibling path for the leaf index.
1031
- */ async getNullifierSiblingPath(blockNumber, leafIndex) {
1032
- const committedDb = await this.#getWorldState(blockNumber);
1049
+ async getNullifierSiblingPath(block, leafIndex) {
1050
+ const committedDb = await this.#getWorldState(block);
1033
1051
  return committedDb.getSiblingPath(MerkleTreeId.NULLIFIER_TREE, leafIndex);
1034
1052
  }
1035
- /**
1036
- * Returns a sibling path for the given index in the data tree.
1037
- * @param blockNumber - The block number at which to get the data.
1038
- * @param leafIndex - The index of the leaf for which the sibling path is required.
1039
- * @returns The sibling path for the leaf index.
1040
- */ async getNoteHashSiblingPath(blockNumber, leafIndex) {
1041
- const committedDb = await this.#getWorldState(blockNumber);
1053
+ async getNoteHashSiblingPath(block, leafIndex) {
1054
+ const committedDb = await this.#getWorldState(block);
1042
1055
  return committedDb.getSiblingPath(MerkleTreeId.NOTE_HASH_TREE, leafIndex);
1043
1056
  }
1044
- async getArchiveMembershipWitness(blockNumber, archive) {
1045
- const committedDb = await this.#getWorldState(blockNumber);
1057
+ async getArchiveMembershipWitness(block, archive) {
1058
+ const committedDb = await this.#getWorldState(block);
1046
1059
  const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.ARCHIVE, [
1047
1060
  archive
1048
1061
  ]);
1049
1062
  return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
1050
1063
  }
1051
- async getNoteHashMembershipWitness(blockNumber, noteHash) {
1052
- const committedDb = await this.#getWorldState(blockNumber);
1064
+ async getNoteHashMembershipWitness(block, noteHash) {
1065
+ const committedDb = await this.#getWorldState(block);
1053
1066
  const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.NOTE_HASH_TREE, [
1054
1067
  noteHash
1055
1068
  ]);
1056
1069
  return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
1057
1070
  }
1058
- /**
1059
- * Returns the index and a sibling path for a leaf in the committed l1 to l2 data tree.
1060
- * @param blockNumber - The block number at which to get the data.
1061
- * @param l1ToL2Message - The l1ToL2Message to get the index / sibling path for.
1062
- * @returns A tuple of the index and the sibling path of the L1ToL2Message (undefined if not found).
1063
- */ async getL1ToL2MessageMembershipWitness(blockNumber, l1ToL2Message) {
1064
- const db = await this.#getWorldState(blockNumber);
1071
+ async getL1ToL2MessageMembershipWitness(block, l1ToL2Message) {
1072
+ const db = await this.#getWorldState(block);
1065
1073
  const [witness] = await db.findSiblingPaths(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, [
1066
1074
  l1ToL2Message
1067
1075
  ]);
@@ -1091,12 +1099,13 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1091
1099
  * @param epoch - The epoch at which to get the data.
1092
1100
  * @returns The L2 to L1 messages (empty array if the epoch is not found).
1093
1101
  */ async getL2ToL1Messages(epoch) {
1094
- // Assumes `getBlocksForEpoch` returns blocks in ascending order of block number.
1095
- const blocks = await this.blockSource.getBlocksForEpoch(epoch);
1102
+ // Assumes `getCheckpointedBlocksForEpoch` returns blocks in ascending order of block number.
1103
+ const checkpointedBlocks = await this.blockSource.getCheckpointedBlocksForEpoch(epoch);
1096
1104
  const blocksInCheckpoints = [];
1097
1105
  let previousSlotNumber = SlotNumber.ZERO;
1098
1106
  let checkpointIndex = -1;
1099
- for (const block of blocks){
1107
+ for (const checkpointedBlock of checkpointedBlocks){
1108
+ const block = checkpointedBlock.block;
1100
1109
  const slotNumber = block.header.globalVariables.slotNumber;
1101
1110
  if (slotNumber !== previousSlotNumber) {
1102
1111
  checkpointIndex++;
@@ -1107,31 +1116,16 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1107
1116
  }
1108
1117
  return blocksInCheckpoints.map((blocks)=>blocks.map((block)=>block.body.txEffects.map((txEffect)=>txEffect.l2ToL1Msgs)));
1109
1118
  }
1110
- /**
1111
- * Returns a sibling path for a leaf in the committed blocks tree.
1112
- * @param blockNumber - The block number at which to get the data.
1113
- * @param leafIndex - Index of the leaf in the tree.
1114
- * @returns The sibling path.
1115
- */ async getArchiveSiblingPath(blockNumber, leafIndex) {
1116
- const committedDb = await this.#getWorldState(blockNumber);
1119
+ async getArchiveSiblingPath(block, leafIndex) {
1120
+ const committedDb = await this.#getWorldState(block);
1117
1121
  return committedDb.getSiblingPath(MerkleTreeId.ARCHIVE, leafIndex);
1118
1122
  }
1119
- /**
1120
- * Returns a sibling path for a leaf in the committed public data tree.
1121
- * @param blockNumber - The block number at which to get the data.
1122
- * @param leafIndex - Index of the leaf in the tree.
1123
- * @returns The sibling path.
1124
- */ async getPublicDataSiblingPath(blockNumber, leafIndex) {
1125
- const committedDb = await this.#getWorldState(blockNumber);
1123
+ async getPublicDataSiblingPath(block, leafIndex) {
1124
+ const committedDb = await this.#getWorldState(block);
1126
1125
  return committedDb.getSiblingPath(MerkleTreeId.PUBLIC_DATA_TREE, leafIndex);
1127
1126
  }
1128
- /**
1129
- * Returns a nullifier membership witness for a given nullifier at a given block.
1130
- * @param blockNumber - The block number at which to get the index.
1131
- * @param nullifier - Nullifier we try to find witness for.
1132
- * @returns The nullifier membership witness (if found).
1133
- */ async getNullifierMembershipWitness(blockNumber, nullifier) {
1134
- const db = await this.#getWorldState(blockNumber);
1127
+ async getNullifierMembershipWitness(block, nullifier) {
1128
+ const db = await this.#getWorldState(block);
1135
1129
  const [witness] = await db.findSiblingPaths(MerkleTreeId.NULLIFIER_TREE, [
1136
1130
  nullifier.toBuffer()
1137
1131
  ]);
@@ -1147,7 +1141,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1147
1141
  }
1148
1142
  /**
1149
1143
  * Returns a low nullifier membership witness for a given nullifier at a given block.
1150
- * @param blockNumber - The block number at which to get the index.
1144
+ * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
1151
1145
  * @param nullifier - Nullifier we try to find the low nullifier witness for.
1152
1146
  * @returns The low nullifier membership witness (if found).
1153
1147
  * @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
@@ -1158,8 +1152,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1158
1152
  * the nullifier already exists in the tree. This is because the `getPreviousValueIndex` function returns the
1159
1153
  * index of the nullifier itself when it already exists in the tree.
1160
1154
  * TODO: This is a confusing behavior and we should eventually address that.
1161
- */ async getLowNullifierMembershipWitness(blockNumber, nullifier) {
1162
- const committedDb = await this.#getWorldState(blockNumber);
1155
+ */ async getLowNullifierMembershipWitness(block, nullifier) {
1156
+ const committedDb = await this.#getWorldState(block);
1163
1157
  const findResult = await committedDb.getPreviousValueIndex(MerkleTreeId.NULLIFIER_TREE, nullifier.toBigInt());
1164
1158
  if (!findResult) {
1165
1159
  return undefined;
@@ -1172,8 +1166,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1172
1166
  const siblingPath = await committedDb.getSiblingPath(MerkleTreeId.NULLIFIER_TREE, BigInt(index));
1173
1167
  return new NullifierMembershipWitness(BigInt(index), preimageData, siblingPath);
1174
1168
  }
1175
- async getPublicDataWitness(blockNumber, leafSlot) {
1176
- const committedDb = await this.#getWorldState(blockNumber);
1169
+ async getPublicDataWitness(block, leafSlot) {
1170
+ const committedDb = await this.#getWorldState(block);
1177
1171
  const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
1178
1172
  if (!lowLeafResult) {
1179
1173
  return undefined;
@@ -1183,18 +1177,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1183
1177
  return new PublicDataWitness(lowLeafResult.index, preimage, path);
1184
1178
  }
1185
1179
  }
1186
- /**
1187
- * Gets the storage value at the given contract storage slot.
1188
- *
1189
- * @remarks The storage slot here refers to the slot as it is defined in Noir not the index in the merkle tree.
1190
- * Aztec's version of `eth_getStorageAt`.
1191
- *
1192
- * @param contract - Address of the contract to query.
1193
- * @param slot - Slot to query.
1194
- * @param blockNumber - The block number at which to get the data or 'latest'.
1195
- * @returns Storage value at the given contract slot.
1196
- */ async getPublicStorageAt(blockNumber, contract, slot) {
1197
- const committedDb = await this.#getWorldState(blockNumber);
1180
+ async getPublicStorageAt(block, contract, slot) {
1181
+ const committedDb = await this.#getWorldState(block);
1198
1182
  const leafSlot = await computePublicDataTreeLeafSlot(contract, slot);
1199
1183
  const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
1200
1184
  if (!lowLeafResult || !lowLeafResult.alreadyPresent) {
@@ -1203,18 +1187,23 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1203
1187
  const preimage = await committedDb.getLeafPreimage(MerkleTreeId.PUBLIC_DATA_TREE, lowLeafResult.index);
1204
1188
  return preimage.leaf.value;
1205
1189
  }
1206
- /**
1207
- * Returns the currently committed block header, or the initial header if no blocks have been produced.
1208
- * @returns The current committed block header.
1209
- */ async getBlockHeader(blockNumber = 'latest') {
1210
- return blockNumber === BlockNumber.ZERO || blockNumber === 'latest' && await this.blockSource.getBlockNumber() === BlockNumber.ZERO ? this.worldStateSynchronizer.getCommitted().getInitialHeader() : this.blockSource.getBlockHeader(blockNumber === 'latest' ? blockNumber : blockNumber);
1211
- }
1212
- /**
1213
- * Get a block header specified by its hash.
1214
- * @param blockHash - The block hash being requested.
1215
- * @returns The requested block header.
1216
- */ async getBlockHeaderByHash(blockHash) {
1217
- return await this.blockSource.getBlockHeaderByHash(blockHash);
1190
+ async getBlockHeader(block = 'latest') {
1191
+ if (BlockHash.isL2BlockHash(block)) {
1192
+ const initialBlockHash = await this.#getInitialHeaderHash();
1193
+ if (block.equals(initialBlockHash)) {
1194
+ // Block source doesn't handle initial header so we need to handle the case separately.
1195
+ return this.worldStateSynchronizer.getCommitted().getInitialHeader();
1196
+ }
1197
+ const blockHashFr = Fr.fromBuffer(block.toBuffer());
1198
+ return this.blockSource.getBlockHeaderByHash(blockHashFr);
1199
+ } else {
1200
+ // Block source doesn't handle initial header so we need to handle the case separately.
1201
+ const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
1202
+ if (blockNumber === BlockNumber.ZERO) {
1203
+ return this.worldStateSynchronizer.getCommitted().getInitialHeader();
1204
+ }
1205
+ return this.blockSource.getBlockHeader(block);
1206
+ }
1218
1207
  }
1219
1208
  /**
1220
1209
  * Get a block header specified by its archive root.
@@ -1433,14 +1422,17 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1433
1422
  return this.slasherClient.gatherOffensesForRound(round === 'current' ? undefined : BigInt(round));
1434
1423
  }
1435
1424
  }
1425
+ #getInitialHeaderHash() {
1426
+ if (!this.initialHeaderHashPromise) {
1427
+ this.initialHeaderHashPromise = this.worldStateSynchronizer.getCommitted().getInitialHeader().hash();
1428
+ }
1429
+ return this.initialHeaderHashPromise;
1430
+ }
1436
1431
  /**
1437
1432
  * Returns an instance of MerkleTreeOperations having first ensured the world state is fully synched
1438
- * @param blockNumber - The block number at which to get the data.
1433
+ * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
1439
1434
  * @returns An instance of a committed MerkleTreeOperations
1440
- */ async #getWorldState(blockNumber) {
1441
- if (typeof blockNumber === 'number' && blockNumber < INITIAL_L2_BLOCK_NUM - 1) {
1442
- throw new Error('Invalid block number to get world state for: ' + blockNumber);
1443
- }
1435
+ */ async #getWorldState(block) {
1444
1436
  let blockSyncedTo = BlockNumber.ZERO;
1445
1437
  try {
1446
1438
  // Attempt to sync the world state if necessary
@@ -1448,15 +1440,33 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1448
1440
  } catch (err) {
1449
1441
  this.log.error(`Error getting world state: ${err}`);
1450
1442
  }
1451
- // using a snapshot could be less efficient than using the committed db
1452
- if (blockNumber === 'latest' /*|| blockNumber === blockSyncedTo*/ ) {
1453
- this.log.debug(`Using committed db for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
1443
+ if (block === 'latest') {
1444
+ this.log.debug(`Using committed db for block 'latest', world state synced upto ${blockSyncedTo}`);
1454
1445
  return this.worldStateSynchronizer.getCommitted();
1455
- } else if (blockNumber <= blockSyncedTo) {
1446
+ }
1447
+ if (BlockHash.isL2BlockHash(block)) {
1448
+ const initialBlockHash = await this.#getInitialHeaderHash();
1449
+ if (block.equals(initialBlockHash)) {
1450
+ // Block source doesn't handle initial header so we need to handle the case separately.
1451
+ return this.worldStateSynchronizer.getSnapshot(BlockNumber.ZERO);
1452
+ }
1453
+ const blockHashFr = Fr.fromBuffer(block.toBuffer());
1454
+ const header = await this.blockSource.getBlockHeaderByHash(blockHashFr);
1455
+ if (!header) {
1456
+ throw new Error(`Block hash ${block.toString()} not found when querying world state. If the node API has been queried with anchor block hash possibly a reorg has occurred.`);
1457
+ }
1458
+ const blockNumber = header.getBlockNumber();
1459
+ this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
1460
+ return this.worldStateSynchronizer.getSnapshot(blockNumber);
1461
+ }
1462
+ // Block number provided
1463
+ {
1464
+ const blockNumber = block;
1465
+ if (blockNumber > blockSyncedTo) {
1466
+ throw new Error(`Queried block ${block} not yet synced by the node (node is synced upto ${blockSyncedTo}).`);
1467
+ }
1456
1468
  this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
1457
1469
  return this.worldStateSynchronizer.getSnapshot(blockNumber);
1458
- } else {
1459
- throw new Error(`Block ${blockNumber} not yet synced`);
1460
1470
  }
1461
1471
  }
1462
1472
  /**
@@ -82,7 +82,7 @@ export class Sentinel extends EventEmitter {
82
82
  return;
83
83
  }
84
84
  const blockNumber = event.block.number;
85
- const block = await this.archiver.getL2BlockNew(blockNumber);
85
+ const block = await this.archiver.getL2Block(blockNumber);
86
86
  if (!block) {
87
87
  this.logger.error(`Failed to get block ${blockNumber}`, {
88
88
  block
@@ -5,7 +5,7 @@ import type { ValidatorStatusHistory, ValidatorStatusInSlot, ValidatorsEpochPerf
5
5
  export declare class SentinelStore {
6
6
  private store;
7
7
  private config;
8
- static readonly SCHEMA_VERSION: number;
8
+ static readonly SCHEMA_VERSION = 2;
9
9
  private readonly historyMap;
10
10
  private readonly provenMap;
11
11
  constructor(store: AztecAsyncKVStore, config: {
@@ -32,4 +32,4 @@ export declare class SentinelStore {
32
32
  private statusToNumber;
33
33
  private statusFromNumber;
34
34
  }
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZX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EY,uBAAuB,CAAC,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,0BAA0B,iBAM/F;IAEY,oBAAoB,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,WAAW,CAAA;KAAE,EAAE,CAAC,CAGnH;YAEa,sCAAsC;IA6BvC,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,qBAAqB,GAAG,SAAS,CAAC,iBAQjH;YAEa,0BAA0B;IAY3B,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAMlF;IAEY,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC,CAGxF;IAED,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,sBAAsB;IAa9B,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,gBAAgB;CAgBzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/aztec-node",
3
- "version": "0.0.1-commit.1142ef1",
3
+ "version": "0.0.1-commit.1bea0213",
4
4
  "main": "dest/index.js",
5
5
  "type": "module",
6
6
  "exports": {
@@ -65,29 +65,30 @@
65
65
  ]
66
66
  },
67
67
  "dependencies": {
68
- "@aztec/archiver": "0.0.1-commit.1142ef1",
69
- "@aztec/bb-prover": "0.0.1-commit.1142ef1",
70
- "@aztec/blob-client": "0.0.1-commit.1142ef1",
71
- "@aztec/constants": "0.0.1-commit.1142ef1",
72
- "@aztec/epoch-cache": "0.0.1-commit.1142ef1",
73
- "@aztec/ethereum": "0.0.1-commit.1142ef1",
74
- "@aztec/foundation": "0.0.1-commit.1142ef1",
75
- "@aztec/kv-store": "0.0.1-commit.1142ef1",
76
- "@aztec/l1-artifacts": "0.0.1-commit.1142ef1",
77
- "@aztec/merkle-tree": "0.0.1-commit.1142ef1",
78
- "@aztec/node-keystore": "0.0.1-commit.1142ef1",
79
- "@aztec/node-lib": "0.0.1-commit.1142ef1",
80
- "@aztec/noir-protocol-circuits-types": "0.0.1-commit.1142ef1",
81
- "@aztec/p2p": "0.0.1-commit.1142ef1",
82
- "@aztec/protocol-contracts": "0.0.1-commit.1142ef1",
83
- "@aztec/prover-client": "0.0.1-commit.1142ef1",
84
- "@aztec/sequencer-client": "0.0.1-commit.1142ef1",
85
- "@aztec/simulator": "0.0.1-commit.1142ef1",
86
- "@aztec/slasher": "0.0.1-commit.1142ef1",
87
- "@aztec/stdlib": "0.0.1-commit.1142ef1",
88
- "@aztec/telemetry-client": "0.0.1-commit.1142ef1",
89
- "@aztec/validator-client": "0.0.1-commit.1142ef1",
90
- "@aztec/world-state": "0.0.1-commit.1142ef1",
68
+ "@aztec/archiver": "0.0.1-commit.1bea0213",
69
+ "@aztec/bb-prover": "0.0.1-commit.1bea0213",
70
+ "@aztec/blob-client": "0.0.1-commit.1bea0213",
71
+ "@aztec/constants": "0.0.1-commit.1bea0213",
72
+ "@aztec/epoch-cache": "0.0.1-commit.1bea0213",
73
+ "@aztec/ethereum": "0.0.1-commit.1bea0213",
74
+ "@aztec/foundation": "0.0.1-commit.1bea0213",
75
+ "@aztec/kv-store": "0.0.1-commit.1bea0213",
76
+ "@aztec/l1-artifacts": "0.0.1-commit.1bea0213",
77
+ "@aztec/merkle-tree": "0.0.1-commit.1bea0213",
78
+ "@aztec/node-keystore": "0.0.1-commit.1bea0213",
79
+ "@aztec/node-lib": "0.0.1-commit.1bea0213",
80
+ "@aztec/noir-protocol-circuits-types": "0.0.1-commit.1bea0213",
81
+ "@aztec/p2p": "0.0.1-commit.1bea0213",
82
+ "@aztec/protocol-contracts": "0.0.1-commit.1bea0213",
83
+ "@aztec/prover-client": "0.0.1-commit.1bea0213",
84
+ "@aztec/sequencer-client": "0.0.1-commit.1bea0213",
85
+ "@aztec/simulator": "0.0.1-commit.1bea0213",
86
+ "@aztec/slasher": "0.0.1-commit.1bea0213",
87
+ "@aztec/stdlib": "0.0.1-commit.1bea0213",
88
+ "@aztec/telemetry-client": "0.0.1-commit.1bea0213",
89
+ "@aztec/validator-client": "0.0.1-commit.1bea0213",
90
+ "@aztec/validator-ha-signer": "0.0.1-commit.1bea0213",
91
+ "@aztec/world-state": "0.0.1-commit.1bea0213",
91
92
  "koa": "^2.16.1",
92
93
  "koa-router": "^13.1.1",
93
94
  "tslib": "^2.4.0",
@@ -97,7 +98,7 @@
97
98
  "@jest/globals": "^30.0.0",
98
99
  "@types/jest": "^30.0.0",
99
100
  "@types/node": "^22.15.17",
100
- "@typescript/native-preview": "7.0.0-dev.20251126.1",
101
+ "@typescript/native-preview": "7.0.0-dev.20260113.1",
101
102
  "jest": "^30.0.0",
102
103
  "jest-mock-extended": "^4.0.0",
103
104
  "ts-node": "^10.9.1",