@aztec/aztec-node 0.0.1-commit.96bb3f7 → 0.0.1-commit.a072138
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/node_metrics.d.ts +1 -1
- package/dest/aztec-node/node_metrics.d.ts.map +1 -1
- package/dest/aztec-node/node_metrics.js +8 -4
- package/dest/aztec-node/server.d.ts +25 -92
- package/dest/aztec-node/server.d.ts.map +1 -1
- package/dest/aztec-node/server.js +149 -158
- package/dest/sentinel/factory.d.ts +1 -1
- package/dest/sentinel/factory.d.ts.map +1 -1
- package/dest/sentinel/factory.js +1 -1
- package/dest/sentinel/sentinel.js +1 -1
- package/dest/sentinel/store.d.ts +2 -2
- package/dest/sentinel/store.d.ts.map +1 -1
- package/package.json +26 -25
- package/src/aztec-node/node_metrics.ts +12 -5
- package/src/aztec-node/server.ts +192 -221
- package/src/sentinel/factory.ts +1 -6
- package/src/sentinel/sentinel.ts +1 -1
|
@@ -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 {
|
|
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 {
|
|
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.
|
|
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(),
|
|
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
|
|
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(
|
|
775
|
-
|
|
776
|
-
|
|
769
|
+
*/ async getBlock(block) {
|
|
770
|
+
if (BlockHash.isBlockHash(block)) {
|
|
771
|
+
return this.getBlockByHash(block);
|
|
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
|
|
784
|
-
|
|
784
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
785
|
+
if (blockHash.equals(initialBlockHash)) {
|
|
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
|
-
|
|
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) ?? [];
|
|
804
|
-
}
|
|
805
|
-
async getPublishedCheckpoints(from, limit) {
|
|
806
|
-
return await this.blockSource.getPublishedCheckpoints(from, limit) ?? [];
|
|
807
|
+
return await this.blockSource.getBlocks(from, BlockNumber(limit)) ?? [];
|
|
807
808
|
}
|
|
808
|
-
async
|
|
809
|
-
return await this.blockSource.
|
|
809
|
+
async getCheckpoints(from, limit) {
|
|
810
|
+
return await this.blockSource.getCheckpoints(from, limit) ?? [];
|
|
810
811
|
}
|
|
811
|
-
async getCheckpointedBlocks(from, limit
|
|
812
|
-
return await this.blockSource.getCheckpointedBlocks(from, limit
|
|
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,29 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
859
863
|
getContract(address) {
|
|
860
864
|
return this.contractDataSource.getContract(address);
|
|
861
865
|
}
|
|
862
|
-
getPrivateLogsByTags(tags) {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
866
|
+
async getPrivateLogsByTags(tags, page, referenceBlock) {
|
|
867
|
+
if (referenceBlock) {
|
|
868
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
869
|
+
if (!referenceBlock.equals(initialBlockHash)) {
|
|
870
|
+
const header = await this.blockSource.getBlockHeaderByHash(referenceBlock);
|
|
871
|
+
if (!header) {
|
|
872
|
+
throw new Error(`Block ${referenceBlock.toString()} not found in the node. This might indicate a reorg has occurred.`);
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
return this.logsSource.getPrivateLogsByTags(tags, page);
|
|
877
|
+
}
|
|
878
|
+
async getPublicLogsByTagsFromContract(contractAddress, tags, page, referenceBlock) {
|
|
879
|
+
if (referenceBlock) {
|
|
880
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
881
|
+
if (!referenceBlock.equals(initialBlockHash)) {
|
|
882
|
+
const header = await this.blockSource.getBlockHeaderByHash(referenceBlock);
|
|
883
|
+
if (!header) {
|
|
884
|
+
throw new Error(`Block ${referenceBlock.toString()} not found in the node. This might indicate a reorg has occurred.`);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
return this.logsSource.getPublicLogsByTagsFromContract(contractAddress, tags, page);
|
|
867
889
|
}
|
|
868
890
|
/**
|
|
869
891
|
* Gets public logs based on the provided filter.
|
|
@@ -904,18 +926,24 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
904
926
|
});
|
|
905
927
|
}
|
|
906
928
|
async getTxReceipt(txHash) {
|
|
907
|
-
|
|
908
|
-
//
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
txReceipt = new TxReceipt(txHash, TxStatus.PENDING, '');
|
|
913
|
-
}
|
|
929
|
+
// Check the tx pool status first. If the tx is known to the pool (pending or mined), we'll use that
|
|
930
|
+
// as a fallback if we don't find a settled receipt in the archiver.
|
|
931
|
+
const txPoolStatus = await this.p2pClient.getTxStatus(txHash);
|
|
932
|
+
const isKnownToPool = txPoolStatus === 'pending' || txPoolStatus === 'mined';
|
|
933
|
+
// Then get the actual tx from the archiver, which tracks every tx in a mined block.
|
|
914
934
|
const settledTxReceipt = await this.blockSource.getSettledTxReceipt(txHash);
|
|
915
935
|
if (settledTxReceipt) {
|
|
916
|
-
|
|
936
|
+
// If the archiver has the receipt then return it.
|
|
937
|
+
return settledTxReceipt;
|
|
938
|
+
} else if (isKnownToPool) {
|
|
939
|
+
// If the tx is in the pool but not in the archiver, it's pending.
|
|
940
|
+
// This handles race conditions between archiver and p2p, where the archiver
|
|
941
|
+
// has pruned the block in which a tx was mined, but p2p has not caught up yet.
|
|
942
|
+
return new TxReceipt(txHash, TxStatus.PENDING, undefined, undefined);
|
|
943
|
+
} else {
|
|
944
|
+
// Otherwise, if we don't know the tx, we consider it dropped.
|
|
945
|
+
return new TxReceipt(txHash, TxStatus.DROPPED, undefined, 'Tx dropped by P2P node');
|
|
917
946
|
}
|
|
918
|
-
return txReceipt;
|
|
919
947
|
}
|
|
920
948
|
getTxEffect(txHash) {
|
|
921
949
|
return this.blockSource.getTxEffect(txHash);
|
|
@@ -967,15 +995,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
967
995
|
*/ async getTxsByHash(txHashes) {
|
|
968
996
|
return compactArray(await Promise.all(txHashes.map((txHash)=>this.getTxByHash(txHash))));
|
|
969
997
|
}
|
|
970
|
-
|
|
971
|
-
|
|
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);
|
|
998
|
+
async findLeavesIndexes(referenceBlock, treeId, leafValues) {
|
|
999
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
979
1000
|
const maybeIndices = await committedDb.findLeafIndices(treeId, leafValues.map((x)=>x.toBuffer()));
|
|
980
1001
|
// We filter out undefined values
|
|
981
1002
|
const indices = maybeIndices.filter((x)=>x !== undefined);
|
|
@@ -1018,50 +1039,27 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1018
1039
|
}
|
|
1019
1040
|
return {
|
|
1020
1041
|
l2BlockNumber: BlockNumber(Number(blockNumber)),
|
|
1021
|
-
l2BlockHash:
|
|
1042
|
+
l2BlockHash: new BlockHash(blockHash),
|
|
1022
1043
|
data: index
|
|
1023
1044
|
};
|
|
1024
1045
|
});
|
|
1025
1046
|
}
|
|
1026
|
-
|
|
1027
|
-
|
|
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);
|
|
1047
|
+
async getBlockHashMembershipWitness(referenceBlock, blockHash) {
|
|
1048
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1046
1049
|
const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.ARCHIVE, [
|
|
1047
|
-
|
|
1050
|
+
blockHash
|
|
1048
1051
|
]);
|
|
1049
1052
|
return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
|
|
1050
1053
|
}
|
|
1051
|
-
async getNoteHashMembershipWitness(
|
|
1052
|
-
const committedDb = await this.#getWorldState(
|
|
1054
|
+
async getNoteHashMembershipWitness(referenceBlock, noteHash) {
|
|
1055
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1053
1056
|
const [pathAndIndex] = await committedDb.findSiblingPaths(MerkleTreeId.NOTE_HASH_TREE, [
|
|
1054
1057
|
noteHash
|
|
1055
1058
|
]);
|
|
1056
1059
|
return pathAndIndex === undefined ? undefined : MembershipWitness.fromSiblingPath(pathAndIndex.index, pathAndIndex.path);
|
|
1057
1060
|
}
|
|
1058
|
-
|
|
1059
|
-
|
|
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);
|
|
1061
|
+
async getL1ToL2MessageMembershipWitness(referenceBlock, l1ToL2Message) {
|
|
1062
|
+
const db = await this.#getWorldState(referenceBlock);
|
|
1065
1063
|
const [witness] = await db.findSiblingPaths(MerkleTreeId.L1_TO_L2_MESSAGE_TREE, [
|
|
1066
1064
|
l1ToL2Message
|
|
1067
1065
|
]);
|
|
@@ -1091,12 +1089,13 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1091
1089
|
* @param epoch - The epoch at which to get the data.
|
|
1092
1090
|
* @returns The L2 to L1 messages (empty array if the epoch is not found).
|
|
1093
1091
|
*/ async getL2ToL1Messages(epoch) {
|
|
1094
|
-
// Assumes `
|
|
1095
|
-
const
|
|
1092
|
+
// Assumes `getCheckpointedBlocksForEpoch` returns blocks in ascending order of block number.
|
|
1093
|
+
const checkpointedBlocks = await this.blockSource.getCheckpointedBlocksForEpoch(epoch);
|
|
1096
1094
|
const blocksInCheckpoints = [];
|
|
1097
1095
|
let previousSlotNumber = SlotNumber.ZERO;
|
|
1098
1096
|
let checkpointIndex = -1;
|
|
1099
|
-
for (const
|
|
1097
|
+
for (const checkpointedBlock of checkpointedBlocks){
|
|
1098
|
+
const block = checkpointedBlock.block;
|
|
1100
1099
|
const slotNumber = block.header.globalVariables.slotNumber;
|
|
1101
1100
|
if (slotNumber !== previousSlotNumber) {
|
|
1102
1101
|
checkpointIndex++;
|
|
@@ -1107,31 +1106,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1107
1106
|
}
|
|
1108
1107
|
return blocksInCheckpoints.map((blocks)=>blocks.map((block)=>block.body.txEffects.map((txEffect)=>txEffect.l2ToL1Msgs)));
|
|
1109
1108
|
}
|
|
1110
|
-
|
|
1111
|
-
|
|
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);
|
|
1109
|
+
async getNullifierMembershipWitness(referenceBlock, nullifier) {
|
|
1110
|
+
const db = await this.#getWorldState(referenceBlock);
|
|
1135
1111
|
const [witness] = await db.findSiblingPaths(MerkleTreeId.NULLIFIER_TREE, [
|
|
1136
1112
|
nullifier.toBuffer()
|
|
1137
1113
|
]);
|
|
@@ -1147,7 +1123,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1147
1123
|
}
|
|
1148
1124
|
/**
|
|
1149
1125
|
* Returns a low nullifier membership witness for a given nullifier at a given block.
|
|
1150
|
-
* @param
|
|
1126
|
+
* @param referenceBlock - The block parameter (block number, block hash, or 'latest') at which to get the data
|
|
1127
|
+
* (which contains the root of the nullifier tree in which we are searching for the nullifier).
|
|
1151
1128
|
* @param nullifier - Nullifier we try to find the low nullifier witness for.
|
|
1152
1129
|
* @returns The low nullifier membership witness (if found).
|
|
1153
1130
|
* @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
|
|
@@ -1158,8 +1135,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1158
1135
|
* the nullifier already exists in the tree. This is because the `getPreviousValueIndex` function returns the
|
|
1159
1136
|
* index of the nullifier itself when it already exists in the tree.
|
|
1160
1137
|
* TODO: This is a confusing behavior and we should eventually address that.
|
|
1161
|
-
*/ async getLowNullifierMembershipWitness(
|
|
1162
|
-
const committedDb = await this.#getWorldState(
|
|
1138
|
+
*/ async getLowNullifierMembershipWitness(referenceBlock, nullifier) {
|
|
1139
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1163
1140
|
const findResult = await committedDb.getPreviousValueIndex(MerkleTreeId.NULLIFIER_TREE, nullifier.toBigInt());
|
|
1164
1141
|
if (!findResult) {
|
|
1165
1142
|
return undefined;
|
|
@@ -1172,8 +1149,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1172
1149
|
const siblingPath = await committedDb.getSiblingPath(MerkleTreeId.NULLIFIER_TREE, BigInt(index));
|
|
1173
1150
|
return new NullifierMembershipWitness(BigInt(index), preimageData, siblingPath);
|
|
1174
1151
|
}
|
|
1175
|
-
async getPublicDataWitness(
|
|
1176
|
-
const committedDb = await this.#getWorldState(
|
|
1152
|
+
async getPublicDataWitness(referenceBlock, leafSlot) {
|
|
1153
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1177
1154
|
const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
|
|
1178
1155
|
if (!lowLeafResult) {
|
|
1179
1156
|
return undefined;
|
|
@@ -1183,18 +1160,8 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1183
1160
|
return new PublicDataWitness(lowLeafResult.index, preimage, path);
|
|
1184
1161
|
}
|
|
1185
1162
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
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);
|
|
1163
|
+
async getPublicStorageAt(referenceBlock, contract, slot) {
|
|
1164
|
+
const committedDb = await this.#getWorldState(referenceBlock);
|
|
1198
1165
|
const leafSlot = await computePublicDataTreeLeafSlot(contract, slot);
|
|
1199
1166
|
const lowLeafResult = await committedDb.getPreviousValueIndex(MerkleTreeId.PUBLIC_DATA_TREE, leafSlot.toBigInt());
|
|
1200
1167
|
if (!lowLeafResult || !lowLeafResult.alreadyPresent) {
|
|
@@ -1203,18 +1170,22 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1203
1170
|
const preimage = await committedDb.getLeafPreimage(MerkleTreeId.PUBLIC_DATA_TREE, lowLeafResult.index);
|
|
1204
1171
|
return preimage.leaf.value;
|
|
1205
1172
|
}
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1173
|
+
async getBlockHeader(block = 'latest') {
|
|
1174
|
+
if (BlockHash.isBlockHash(block)) {
|
|
1175
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
1176
|
+
if (block.equals(initialBlockHash)) {
|
|
1177
|
+
// Block source doesn't handle initial header so we need to handle the case separately.
|
|
1178
|
+
return this.worldStateSynchronizer.getCommitted().getInitialHeader();
|
|
1179
|
+
}
|
|
1180
|
+
return this.blockSource.getBlockHeaderByHash(block);
|
|
1181
|
+
} else {
|
|
1182
|
+
// Block source doesn't handle initial header so we need to handle the case separately.
|
|
1183
|
+
const blockNumber = block === 'latest' ? await this.getBlockNumber() : block;
|
|
1184
|
+
if (blockNumber === BlockNumber.ZERO) {
|
|
1185
|
+
return this.worldStateSynchronizer.getCommitted().getInitialHeader();
|
|
1186
|
+
}
|
|
1187
|
+
return this.blockSource.getBlockHeader(block);
|
|
1188
|
+
}
|
|
1218
1189
|
}
|
|
1219
1190
|
/**
|
|
1220
1191
|
* Get a block header specified by its archive root.
|
|
@@ -1240,7 +1211,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1240
1211
|
const coinbase = EthAddress.ZERO;
|
|
1241
1212
|
const feeRecipient = AztecAddress.ZERO;
|
|
1242
1213
|
const newGlobalVariables = await this.globalVariableBuilder.buildGlobalVariables(blockNumber, coinbase, feeRecipient);
|
|
1243
|
-
const publicProcessorFactory = new PublicProcessorFactory(this.contractDataSource, new DateProvider(), this.telemetry);
|
|
1214
|
+
const publicProcessorFactory = new PublicProcessorFactory(this.contractDataSource, new DateProvider(), this.telemetry, this.log.getBindings());
|
|
1244
1215
|
this.log.verbose(`Simulating public calls for tx ${txHash}`, {
|
|
1245
1216
|
globalVariables: newGlobalVariables.toInspect(),
|
|
1246
1217
|
txHash,
|
|
@@ -1291,7 +1262,7 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1291
1262
|
gasFees: await this.getCurrentMinFees(),
|
|
1292
1263
|
skipFeeEnforcement,
|
|
1293
1264
|
txsPermitted: !this.config.disableTransactions
|
|
1294
|
-
});
|
|
1265
|
+
}, this.log.getBindings());
|
|
1295
1266
|
return await validator.validateTx(tx);
|
|
1296
1267
|
}
|
|
1297
1268
|
getConfig() {
|
|
@@ -1433,14 +1404,17 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1433
1404
|
return this.slasherClient.gatherOffensesForRound(round === 'current' ? undefined : BigInt(round));
|
|
1434
1405
|
}
|
|
1435
1406
|
}
|
|
1407
|
+
#getInitialHeaderHash() {
|
|
1408
|
+
if (!this.initialHeaderHashPromise) {
|
|
1409
|
+
this.initialHeaderHashPromise = this.worldStateSynchronizer.getCommitted().getInitialHeader().hash();
|
|
1410
|
+
}
|
|
1411
|
+
return this.initialHeaderHashPromise;
|
|
1412
|
+
}
|
|
1436
1413
|
/**
|
|
1437
1414
|
* Returns an instance of MerkleTreeOperations having first ensured the world state is fully synched
|
|
1438
|
-
* @param
|
|
1415
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
1439
1416
|
* @returns An instance of a committed MerkleTreeOperations
|
|
1440
|
-
*/ async #getWorldState(
|
|
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
|
-
}
|
|
1417
|
+
*/ async #getWorldState(block) {
|
|
1444
1418
|
let blockSyncedTo = BlockNumber.ZERO;
|
|
1445
1419
|
try {
|
|
1446
1420
|
// Attempt to sync the world state if necessary
|
|
@@ -1448,15 +1422,32 @@ _dec = trackSpan('AztecNodeService.simulatePublicCalls', (tx)=>({
|
|
|
1448
1422
|
} catch (err) {
|
|
1449
1423
|
this.log.error(`Error getting world state: ${err}`);
|
|
1450
1424
|
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
this.log.debug(`Using committed db for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
|
|
1425
|
+
if (block === 'latest') {
|
|
1426
|
+
this.log.debug(`Using committed db for block 'latest', world state synced upto ${blockSyncedTo}`);
|
|
1454
1427
|
return this.worldStateSynchronizer.getCommitted();
|
|
1455
|
-
}
|
|
1428
|
+
}
|
|
1429
|
+
if (BlockHash.isBlockHash(block)) {
|
|
1430
|
+
const initialBlockHash = await this.#getInitialHeaderHash();
|
|
1431
|
+
if (block.equals(initialBlockHash)) {
|
|
1432
|
+
// Block source doesn't handle initial header so we need to handle the case separately.
|
|
1433
|
+
return this.worldStateSynchronizer.getSnapshot(BlockNumber.ZERO);
|
|
1434
|
+
}
|
|
1435
|
+
const header = await this.blockSource.getBlockHeaderByHash(block);
|
|
1436
|
+
if (!header) {
|
|
1437
|
+
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.`);
|
|
1438
|
+
}
|
|
1439
|
+
const blockNumber = header.getBlockNumber();
|
|
1440
|
+
this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
|
|
1441
|
+
return this.worldStateSynchronizer.getSnapshot(blockNumber);
|
|
1442
|
+
}
|
|
1443
|
+
// Block number provided
|
|
1444
|
+
{
|
|
1445
|
+
const blockNumber = block;
|
|
1446
|
+
if (blockNumber > blockSyncedTo) {
|
|
1447
|
+
throw new Error(`Queried block ${block} not yet synced by the node (node is synced upto ${blockSyncedTo}).`);
|
|
1448
|
+
}
|
|
1456
1449
|
this.log.debug(`Using snapshot for block ${blockNumber}, world state synced upto ${blockSyncedTo}`);
|
|
1457
1450
|
return this.worldStateSynchronizer.getSnapshot(blockNumber);
|
|
1458
|
-
} else {
|
|
1459
|
-
throw new Error(`Block ${blockNumber} not yet synced`);
|
|
1460
1451
|
}
|
|
1461
1452
|
}
|
|
1462
1453
|
/**
|
|
@@ -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,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjdG9yeS5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NlbnRpbmVsL2ZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLEVBQUUsVUFBVSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFFckQsT0FBTyxLQUFLLEVBQUUsZUFBZSxFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFOUQsT0FBTyxLQUFLLEVBQUUsU0FBUyxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBQzVDLE9BQU8sS0FBSyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3pELE9BQU8sS0FBSyxFQUFFLGFBQWEsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBRXJFLE9BQU8sS0FBSyxFQUFFLGNBQWMsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUNsRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBR3pDLHdCQUFzQixjQUFjLENBQ2xDLFVBQVUsRUFBRSxVQUFVLEVBQ3RCLFFBQVEsRUFBRSxhQUFhLEVBQ3ZCLEdBQUcsRUFBRSxTQUFTLEVBQ2QsTUFBTSxFQUFFLGNBQWMsR0FBRyxlQUFlLEdBQUcsYUFBYSxFQUN4RCxNQUFNLHlDQUFnQyxHQUNyQyxPQUFPLENBQUMsUUFBUSxHQUFHLFNBQVMsQ0FBQyxDQVkvQiJ9
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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"}
|
package/dest/sentinel/factory.js
CHANGED
|
@@ -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,
|
|
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, {
|
|
@@ -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.
|
|
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
|
package/dest/sentinel/store.d.ts
CHANGED
|
@@ -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
|
|
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,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmUuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZW50aW5lbC9zdG9yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFVBQVUsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQzFFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUUzRCxPQUFPLEtBQUssRUFBRSxpQkFBaUIsRUFBaUIsTUFBTSxpQkFBaUIsQ0FBQztBQUN4RSxPQUFPLEtBQUssRUFDVixzQkFBc0IsRUFDdEIscUJBQXFCLEVBQ3JCLDBCQUEwQixFQUMzQixNQUFNLDBCQUEwQixDQUFDO0FBRWxDLHFCQUFhLGFBQWE7SUFXdEIsT0FBTyxDQUFDLEtBQUs7SUFDYixPQUFPLENBQUMsTUFBTTtJQVhoQixnQkFBdUIsY0FBYyxLQUFLO0lBRzFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsVUFBVSxDQUF1QztJQUlsRSxPQUFPLENBQUMsUUFBUSxDQUFDLFNBQVMsQ0FBdUM7SUFFakUsWUFDVSxLQUFLLEVBQUUsaUJBQWlCLEVBQ3hCLE1BQU0sRUFBRTtRQUFFLGFBQWEsRUFBRSxNQUFNLENBQUM7UUFBQywrQkFBK0IsRUFBRSxNQUFNLENBQUE7S0FBRSxFQUluRj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