@aztec/aztec-node 0.0.1-commit.6d3c34e → 0.0.1-commit.7cf39cb55

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,
@@ -763,33 +758,46 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
763
758
  rollupVersion,
764
759
  enr,
765
760
  l1ContractAddresses: contractAddresses,
766
- protocolContractAddresses: protocolContractAddresses
761
+ protocolContractAddresses: protocolContractAddresses,
762
+ realProofs: !!this.config.realProofs
767
763
  };
768
764
  return nodeInfo;
769
765
  }
770
766
  /**
771
- * Get a block specified by its number.
772
- * @param number - The block number being requested.
767
+ * Get a block specified by its block number, block hash, or 'latest'.
768
+ * @param block - The block parameter (block number, block hash, or 'latest').
773
769
  * @returns The requested block.
774
- */ async getBlock(number) {
775
- const blockNumber = number === 'latest' ? await this.getBlockNumber() : number;
776
- return await this.blockSource.getBlock(blockNumber);
770
+ */ async getBlock(block) {
771
+ if (BlockHash.isBlockHash(block)) {
772
+ return this.getBlockByHash(block);
773
+ }
774
+ const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
775
+ if (blockNumber === BlockNumber.ZERO) {
776
+ return this.buildInitialBlock();
777
+ }
778
+ return await this.blockSource.getL2Block(blockNumber);
777
779
  }
778
780
  /**
779
781
  * Get a block specified by its hash.
780
782
  * @param blockHash - The block hash being requested.
781
783
  * @returns The requested block.
782
784
  */ async getBlockByHash(blockHash) {
783
- const publishedBlock = await this.blockSource.getPublishedBlockByHash(blockHash);
784
- return publishedBlock?.block;
785
+ const initialBlockHash = await this.#getInitialHeaderHash();
786
+ if (blockHash.equals(initialBlockHash)) {
787
+ return this.buildInitialBlock();
788
+ }
789
+ return await this.blockSource.getL2BlockByHash(blockHash);
790
+ }
791
+ buildInitialBlock() {
792
+ const initialHeader = this.worldStateSynchronizer.getCommitted().getInitialHeader();
793
+ return L2Block.empty(initialHeader);
785
794
  }
786
795
  /**
787
796
  * Get a block specified by its archive root.
788
797
  * @param archive - The archive root being requested.
789
798
  * @returns The requested block.
790
799
  */ async getBlockByArchive(archive) {
791
- const publishedBlock = await this.blockSource.getPublishedBlockByArchive(archive);
792
- return publishedBlock?.block;
800
+ return await this.blockSource.getL2BlockByArchive(archive);
793
801
  }
794
802
  /**
795
803
  * Method to request blocks. Will attempt to return all requested blocks but will return only those available.
@@ -797,19 +805,13 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
797
805
  * @param limit - The maximum number of blocks to obtain.
798
806
  * @returns The blocks requested.
799
807
  */ 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) ?? [];
804
- }
805
- async getPublishedCheckpoints(from, limit) {
806
- return await this.blockSource.getPublishedCheckpoints(from, limit) ?? [];
808
+ return await this.blockSource.getBlocks(from, BlockNumber(limit)) ?? [];
807
809
  }
808
- async getL2BlocksNew(from, limit) {
809
- return await this.blockSource.getL2BlocksNew(from, limit) ?? [];
810
+ async getCheckpoints(from, limit) {
811
+ return await this.blockSource.getCheckpoints(from, limit) ?? [];
810
812
  }
811
- async getCheckpointedBlocks(from, limit, proven) {
812
- return await this.blockSource.getCheckpointedBlocks(from, limit, proven) ?? [];
813
+ async getCheckpointedBlocks(from, limit) {
814
+ return await this.blockSource.getCheckpointedBlocks(from, limit) ?? [];
813
815
  }
814
816
  /**
815
817
  * Method to fetch the current min L2 fees.
@@ -835,6 +837,9 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
835
837
  async getProvenBlockNumber() {
836
838
  return await this.blockSource.getProvenBlockNumber();
837
839
  }
840
+ async getCheckpointedBlockNumber() {
841
+ return await this.blockSource.getCheckpointedL2BlockNumber();
842
+ }
838
843
  /**
839
844
  * Method to fetch the version of the package.
840
845
  * @returns The node package version
@@ -859,11 +864,29 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
859
864
  getContract(address) {
860
865
  return this.contractDataSource.getContract(address);
861
866
  }
862
- getPrivateLogsByTags(tags) {
863
- return this.logsSource.getPrivateLogsByTags(tags);
864
- }
865
- getPublicLogsByTagsFromContract(contractAddress, tags) {
866
- return this.logsSource.getPublicLogsByTagsFromContract(contractAddress, tags);
867
+ async getPrivateLogsByTags(tags, page, referenceBlock) {
868
+ if (referenceBlock) {
869
+ const initialBlockHash = await this.#getInitialHeaderHash();
870
+ if (!referenceBlock.equals(initialBlockHash)) {
871
+ const header = await this.blockSource.getBlockHeaderByHash(referenceBlock);
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 header = await this.blockSource.getBlockHeaderByHash(referenceBlock);
884
+ if (!header) {
885
+ throw new Error(`Block ${referenceBlock.toString()} not found in the node. This might indicate a reorg has occurred.`);
886
+ }
887
+ }
888
+ }
889
+ return this.logsSource.getPublicLogsByTagsFromContract(contractAddress, tags, page);
867
890
  }
868
891
  /**
869
892
  * Gets public logs based on the provided filter.
@@ -904,18 +927,24 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
904
927
  });
905
928
  }
906
929
  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
- }
930
+ // Check the tx pool status first. If the tx is known to the pool (pending or mined), we'll use that
931
+ // as a fallback if we don't find a settled receipt in the archiver.
932
+ const txPoolStatus = await this.p2pClient.getTxStatus(txHash);
933
+ const isKnownToPool = txPoolStatus === 'pending' || txPoolStatus === 'mined';
934
+ // Then get the actual tx from the archiver, which tracks every tx in a mined block.
914
935
  const settledTxReceipt = await this.blockSource.getSettledTxReceipt(txHash);
915
936
  if (settledTxReceipt) {
916
- txReceipt = settledTxReceipt;
937
+ // If the archiver has the receipt then return it.
938
+ return settledTxReceipt;
939
+ } else if (isKnownToPool) {
940
+ // If the tx is in the pool but not in the archiver, it's pending.
941
+ // This handles race conditions between archiver and p2p, where the archiver
942
+ // has pruned the block in which a tx was mined, but p2p has not caught up yet.
943
+ return new TxReceipt(txHash, TxStatus.PENDING, undefined, undefined);
944
+ } else {
945
+ // Otherwise, if we don't know the tx, we consider it dropped.
946
+ return new TxReceipt(txHash, TxStatus.DROPPED, undefined, 'Tx dropped by P2P node');
917
947
  }
918
- return txReceipt;
919
948
  }
920
949
  getTxEffect(txHash) {
921
950
  return this.blockSource.getTxEffect(txHash);
@@ -967,15 +996,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
967
996
  */ async getTxsByHash(txHashes) {
968
997
  return compactArray(await Promise.all(txHashes.map((txHash)=>this.getTxByHash(txHash))));
969
998
  }
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);
999
+ async findLeavesIndexes(referenceBlock, treeId, leafValues) {
1000
+ const committedDb = await this.#getWorldState(referenceBlock);
979
1001
  const maybeIndices = await committedDb.findLeafIndices(treeId, leafValues.map((x)=>x.toBuffer()));
980
1002
  // We filter out undefined values
981
1003
  const indices = maybeIndices.filter((x)=>x !== undefined);
@@ -1018,50 +1040,27 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1018
1040
  }
1019
1041
  return {
1020
1042
  l2BlockNumber: BlockNumber(Number(blockNumber)),
1021
- l2BlockHash: L2BlockHash.fromField(blockHash),
1043
+ l2BlockHash: new BlockHash(blockHash),
1022
1044
  data: index
1023
1045
  };
1024
1046
  });
1025
1047
  }
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);
1033
- return committedDb.getSiblingPath(MerkleTreeId.NULLIFIER_TREE, leafIndex);
1034
- }
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);
1042
- return committedDb.getSiblingPath(MerkleTreeId.NOTE_HASH_TREE, leafIndex);
1043
- }
1044
- async getArchiveMembershipWitness(blockNumber, archive) {
1045
- const committedDb = await this.#getWorldState(blockNumber);
1048
+ async getBlockHashMembershipWitness(referenceBlock, blockHash) {
1049
+ const committedDb = await this.#getWorldState(referenceBlock);
1046
1050
  const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.ARCHIVE, [
1047
- archive
1051
+ blockHash
1048
1052
  ]);
1049
1053
  return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
1050
1054
  }
1051
- async getNoteHashMembershipWitness(blockNumber, noteHash) {
1052
- const committedDb = await this.#getWorldState(blockNumber);
1055
+ async getNoteHashMembershipWitness(referenceBlock, noteHash) {
1056
+ const committedDb = await this.#getWorldState(referenceBlock);
1053
1057
  const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.NOTE_HASH_TREE, [
1054
1058
  noteHash
1055
1059
  ]);
1056
1060
  return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
1057
1061
  }
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);
1062
+ async getL1ToL2MessageMembershipWitness(referenceBlock, l1ToL2Message) {
1063
+ const db = await this.#getWorldState(referenceBlock);
1065
1064
  const [witness] = await db.findSiblingPaths(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, [
1066
1065
  l1ToL2Message
1067
1066
  ]);
@@ -1091,12 +1090,13 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1091
1090
  * @param epoch - The epoch at which to get the data.
1092
1091
  * @returns The L2 to L1 messages (empty array if the epoch is not found).
1093
1092
  */ async getL2ToL1Messages(epoch) {
1094
- // Assumes `getBlocksForEpoch` returns blocks in ascending order of block number.
1095
- const blocks = await this.blockSource.getBlocksForEpoch(epoch);
1093
+ // Assumes `getCheckpointedBlocksForEpoch` returns blocks in ascending order of block number.
1094
+ const checkpointedBlocks = await this.blockSource.getCheckpointedBlocksForEpoch(epoch);
1096
1095
  const blocksInCheckpoints = [];
1097
1096
  let previousSlotNumber = SlotNumber.ZERO;
1098
1097
  let checkpointIndex = -1;
1099
- for (const block of blocks){
1098
+ for (const checkpointedBlock of checkpointedBlocks){
1099
+ const block = checkpointedBlock.block;
1100
1100
  const slotNumber = block.header.globalVariables.slotNumber;
1101
1101
  if (slotNumber !== previousSlotNumber) {
1102
1102
  checkpointIndex++;
@@ -1107,31 +1107,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1107
1107
  }
1108
1108
  return blocksInCheckpoints.map((blocks)=>blocks.map((block)=>block.body.txEffects.map((txEffect)=>txEffect.l2ToL1Msgs)));
1109
1109
  }
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);
1117
- return committedDb.getSiblingPath(MerkleTreeId.ARCHIVE, leafIndex);
1118
- }
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);
1126
- return committedDb.getSiblingPath(MerkleTreeId.PUBLIC_DATA_TREE, leafIndex);
1127
- }
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);
1110
+ async getNullifierMembershipWitness(referenceBlock, nullifier) {
1111
+ const db = await this.#getWorldState(referenceBlock);
1135
1112
  const [witness] = await db.findSiblingPaths(MerkleTreeId.NULLIFIER_TREE, [
1136
1113
  nullifier.toBuffer()
1137
1114
  ]);
@@ -1147,7 +1124,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1147
1124
  }
1148
1125
  /**
1149
1126
  * 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.
1127
+ * @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data
1128
+ * (which contains the root of the nullifier tree in which we are searching for the nullifier).
1151
1129
  * @param nullifier - Nullifier we try to find the low nullifier witness for.
1152
1130
  * @returns The low nullifier membership witness (if found).
1153
1131
  * @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
@@ -1158,8 +1136,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1158
1136
  * the nullifier already exists in the tree. This is because the `getPreviousValueIndex` function returns the
1159
1137
  * index of the nullifier itself when it already exists in the tree.
1160
1138
  * TODO: This is a confusing behavior and we should eventually address that.
1161
- */ async getLowNullifierMembershipWitness(blockNumber, nullifier) {
1162
- const committedDb = await this.#getWorldState(blockNumber);
1139
+ */ async getLowNullifierMembershipWitness(referenceBlock, nullifier) {
1140
+ const committedDb = await this.#getWorldState(referenceBlock);
1163
1141
  const findResult = await committedDb.getPreviousValueIndex(MerkleTreeId.NULLIFIER_TREE, nullifier.toBigInt());
1164
1142
  if (!findResult) {
1165
1143
  return undefined;
@@ -1172,8 +1150,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1172
1150
  const siblingPath = await committedDb.getSiblingPath(MerkleTreeId.NULLIFIER_TREE, BigInt(index));
1173
1151
  return new NullifierMembershipWitness(BigInt(index), preimageData, siblingPath);
1174
1152
  }
1175
- async getPublicDataWitness(blockNumber, leafSlot) {
1176
- const committedDb = await this.#getWorldState(blockNumber);
1153
+ async getPublicDataWitness(referenceBlock, leafSlot) {
1154
+ const committedDb = await this.#getWorldState(referenceBlock);
1177
1155
  const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
1178
1156
  if (!lowLeafResult) {
1179
1157
  return undefined;
@@ -1183,18 +1161,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1183
1161
  return new PublicDataWitness(lowLeafResult.index, preimage, path);
1184
1162
  }
1185
1163
  }
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);
1164
+ async getPublicStorageAt(referenceBlock, contract, slot) {
1165
+ const committedDb = await this.#getWorldState(referenceBlock);
1198
1166
  const leafSlot = await computePublicDataTreeLeafSlot(contract, slot);
1199
1167
  const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
1200
1168
  if (!lowLeafResult || !lowLeafResult.alreadyPresent) {
@@ -1203,18 +1171,22 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1203
1171
  const preimage = await committedDb.getLeafPreimage(MerkleTreeId.PUBLIC_DATA_TREE, lowLeafResult.index);
1204
1172
  return preimage.leaf.value;
1205
1173
  }
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);
1174
+ async getBlockHeader(block = 'latest') {
1175
+ if (BlockHash.isBlockHash(block)) {
1176
+ const initialBlockHash = await this.#getInitialHeaderHash();
1177
+ if (block.equals(initialBlockHash)) {
1178
+ // Block source doesn't handle initial header so we need to handle the case separately.
1179
+ return this.worldStateSynchronizer.getCommitted().getInitialHeader();
1180
+ }
1181
+ return this.blockSource.getBlockHeaderByHash(block);
1182
+ } else {
1183
+ // Block source doesn't handle initial header so we need to handle the case separately.
1184
+ const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
1185
+ if (blockNumber === BlockNumber.ZERO) {
1186
+ return this.worldStateSynchronizer.getCommitted().getInitialHeader();
1187
+ }
1188
+ return this.blockSource.getBlockHeader(block);
1189
+ }
1218
1190
  }
1219
1191
  /**
1220
1192
  * Get a block header specified by its archive root.
@@ -1240,7 +1212,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1240
1212
  const coinbase = EthAddress.ZERO;
1241
1213
  const feeRecipient = AztecAddress.ZERO;
1242
1214
  const newGlobalVariables = await this.globalVariableBuilder.buildGlobalVariables(blockNumber, coinbase, feeRecipient);
1243
- const publicProcessorFactory = new PublicProcessorFactory(this.contractDataSource, new DateProvider(), this.telemetry);
1215
+ const publicProcessorFactory = new PublicProcessorFactory(this.contractDataSource, new DateProvider(), this.telemetry, this.log.getBindings());
1244
1216
  this.log.verbose(`Simulating public calls for tx ${txHash}`, {
1245
1217
  globalVariables: newGlobalVariables.toInspect(),
1246
1218
  txHash,
@@ -1291,7 +1263,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1291
1263
  gasFees: await this.getCurrentMinFees(),
1292
1264
  skipFeeEnforcement,
1293
1265
  txsPermitted: !this.config.disableTransactions
1294
- });
1266
+ }, this.log.getBindings());
1295
1267
  return await validator.validateTx(tx);
1296
1268
  }
1297
1269
  getConfig() {
@@ -1433,14 +1405,17 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1433
1405
  return this.slasherClient.gatherOffensesForRound(round === 'current' ? undefined : BigInt(round));
1434
1406
  }
1435
1407
  }
1408
+ #getInitialHeaderHash() {
1409
+ if (!this.initialHeaderHashPromise) {
1410
+ this.initialHeaderHashPromise = this.worldStateSynchronizer.getCommitted().getInitialHeader().hash();
1411
+ }
1412
+ return this.initialHeaderHashPromise;
1413
+ }
1436
1414
  /**
1437
1415
  * 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.
1416
+ * @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
1439
1417
  * @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
- }
1418
+ */ async #getWorldState(block) {
1444
1419
  let blockSyncedTo = BlockNumber.ZERO;
1445
1420
  try {
1446
1421
  // Attempt to sync the world state if necessary
@@ -1448,15 +1423,32 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
1448
1423
  } catch (err) {
1449
1424
  this.log.error(`Error getting world state: ${err}`);
1450
1425
  }
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}`);
1426
+ if (block === 'latest') {
1427
+ this.log.debug(`Using committed db for block 'latest', world state synced upto ${blockSyncedTo}`);
1454
1428
  return this.worldStateSynchronizer.getCommitted();
1455
- } else if (blockNumber <= blockSyncedTo) {
1429
+ }
1430
+ if (BlockHash.isBlockHash(block)) {
1431
+ const initialBlockHash = await this.#getInitialHeaderHash();
1432
+ if (block.equals(initialBlockHash)) {
1433
+ // Block source doesn't handle initial header so we need to handle the case separately.
1434
+ return this.worldStateSynchronizer.getSnapshot(BlockNumber.ZERO);
1435
+ }
1436
+ const header = await this.blockSource.getBlockHeaderByHash(block);
1437
+ if (!header) {
1438
+ 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.`);
1439
+ }
1440
+ const blockNumber = header.getBlockNumber();
1441
+ this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
1442
+ return this.worldStateSynchronizer.getSnapshot(blockNumber);
1443
+ }
1444
+ // Block number provided
1445
+ {
1446
+ const blockNumber = block;
1447
+ if (blockNumber > blockSyncedTo) {
1448
+ throw new Error(`Queried block ${block} not yet synced by the node (node is synced upto ${blockSyncedTo}).`);
1449
+ }
1456
1450
  this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
1457
1451
  return this.worldStateSynchronizer.getSnapshot(blockNumber);
1458
- } else {
1459
- throw new Error(`Block ${blockNumber} not yet synced`);
1460
1452
  }
1461
1453
  }
1462
1454
  /**
@@ -6,4 +6,4 @@ import type { SlasherConfig } from '@aztec/stdlib/interfaces/server';
6
6
  import type { SentinelConfig } from './config.js';
7
7
  import { Sentinel } from './sentinel.js';
8
8
  export declare function createSentinel(epochCache: EpochCache, archiver: L2BlockSource, p2p: P2PClient, config: SentinelConfig & DataStoreConfig & SlasherConfig, logger?: import("@aztec/foundation/log").Logger): Promise<Sentinel | undefined>;
9
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG9yeS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlbnRpbmVsL2ZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsVUFBVSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFFckQsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFOUQsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzVDLE9BQU8sS0FBSyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3pELE9BQU8sS0FBSyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRXJFLE9BQU8sS0FBSyxFQUFFLGNBQWMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUNsRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBR3pDLHdCQUFzQixjQUFjLENBQ2xDLFVBQVUsRUFBRSxVQUFVLEVBQ3RCLFFBQVEsRUFBRSxhQUFhLEVBQ3ZCLEdBQUcsRUFBRSxTQUFTLEVBQ2QsTUFBTSxFQUFFLGNBQWMsR0FBRyxlQUFlLEdBQUcsYUFBYSxFQUN4RCxNQUFNLHlDQUFnQyxHQUNyQyxPQUFPLENBQUMsUUFBUSxHQUFHLFNBQVMsQ0FBQyxDQWlCL0IifQ==
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG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AE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,wBAAsB,cAAc,CAClC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,aAAa,EACvB,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,cAAc,GAAG,eAAe,GAAG,aAAa,EACxD,MAAM,yCAAgC,GACrC,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAiB/B"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/sentinel/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,wBAAsB,cAAc,CAClC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,aAAa,EACvB,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,cAAc,GAAG,eAAe,GAAG,aAAa,EACxD,MAAM,yCAAgC,GACrC,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAY/B"}
@@ -6,7 +6,7 @@ export async function createSentinel(epochCache, archiver, p2p, config, logger =
6
6
  if (!config.sentinelEnabled) {
7
7
  return undefined;
8
8
  }
9
- const kvStore = await createStore('sentinel', SentinelStore.SCHEMA_VERSION, config, createLogger('node:sentinel:lmdb'));
9
+ const kvStore = await createStore('sentinel', SentinelStore.SCHEMA_VERSION, config, logger.getBindings());
10
10
  const storeHistoryLength = config.sentinelHistoryLengthInEpochs * epochCache.getL1Constants().epochDuration;
11
11
  const storeHistoricProvenPerformanceLength = config.sentinelHistoricProvenPerformanceLengthInEpochs;
12
12
  const sentinelStore = new SentinelStore(kvStore, {
@@ -77,7 +77,7 @@ export declare class Sentinel extends Sentinel_base implements L2BlockStreamEven
77
77
  /** Computes stats for a single validator. */
78
78
  getValidatorStats(validatorAddress: EthAddress, fromSlot?: SlotNumber, toSlot?: SlotNumber): Promise<SingleValidatorStats | undefined>;
79
79
  protected computeStatsForValidator(address: `0x${string}`, allHistory: ValidatorStatusHistory, fromSlot?: SlotNumber, toSlot?: SlotNumber): ValidatorStats;
80
- protected computeMissed(history: ValidatorStatusHistory, computeOverPrefix: ValidatorStatusType | undefined, filter: ValidatorStatusInSlot[]): {
80
+ protected computeMissed(history: ValidatorStatusHistory, computeOverCategory: ValidatorStatusType | undefined, filter: ValidatorStatusInSlot[]): {
81
81
  currentStreak: number;
82
82
  rate: number | undefined;
83
83
  count: number;
@@ -90,4 +90,4 @@ export declare class Sentinel extends Sentinel_base implements L2BlockStreamEven
90
90
  } | undefined;
91
91
  }
92
92
  export {};
93
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VudGluZWwuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZW50aW5lbC9zZW50aW5lbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxVQUFVLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUNyRCxPQUFPLEVBQWUsZ0JBQWdCLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRXpHLE9BQU8sRUFBRSxVQU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