@aztec/archiver 0.0.1-commit.3469e52 → 0.0.1-commit.381b1a9
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/README.md +9 -0
- package/dest/archiver.d.ts +12 -8
- package/dest/archiver.d.ts.map +1 -1
- package/dest/archiver.js +81 -120
- package/dest/errors.d.ts +6 -1
- package/dest/errors.d.ts.map +1 -1
- package/dest/errors.js +8 -0
- package/dest/factory.d.ts +3 -1
- package/dest/factory.d.ts.map +1 -1
- package/dest/factory.js +14 -11
- package/dest/index.d.ts +2 -1
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +1 -0
- package/dest/l1/bin/retrieve-calldata.js +35 -32
- package/dest/l1/calldata_retriever.d.ts +73 -50
- package/dest/l1/calldata_retriever.d.ts.map +1 -1
- package/dest/l1/calldata_retriever.js +190 -259
- package/dest/l1/data_retrieval.d.ts +4 -7
- package/dest/l1/data_retrieval.d.ts.map +1 -1
- package/dest/l1/data_retrieval.js +12 -16
- package/dest/l1/spire_proposer.d.ts +5 -5
- package/dest/l1/spire_proposer.d.ts.map +1 -1
- package/dest/l1/spire_proposer.js +9 -17
- package/dest/l1/validate_trace.d.ts +6 -3
- package/dest/l1/validate_trace.d.ts.map +1 -1
- package/dest/l1/validate_trace.js +13 -9
- package/dest/modules/data_source_base.d.ts +25 -21
- package/dest/modules/data_source_base.d.ts.map +1 -1
- package/dest/modules/data_source_base.js +45 -120
- package/dest/modules/data_store_updater.d.ts +40 -21
- package/dest/modules/data_store_updater.d.ts.map +1 -1
- package/dest/modules/data_store_updater.js +114 -64
- package/dest/modules/instrumentation.d.ts +6 -4
- package/dest/modules/instrumentation.d.ts.map +1 -1
- package/dest/modules/instrumentation.js +26 -12
- package/dest/modules/l1_synchronizer.d.ts +5 -8
- package/dest/modules/l1_synchronizer.d.ts.map +1 -1
- package/dest/modules/l1_synchronizer.js +46 -20
- package/dest/store/block_store.d.ts +49 -32
- package/dest/store/block_store.d.ts.map +1 -1
- package/dest/store/block_store.js +165 -54
- package/dest/store/contract_class_store.d.ts +1 -1
- package/dest/store/contract_class_store.d.ts.map +1 -1
- package/dest/store/contract_class_store.js +11 -7
- package/dest/store/kv_archiver_store.d.ts +53 -25
- package/dest/store/kv_archiver_store.d.ts.map +1 -1
- package/dest/store/kv_archiver_store.js +50 -17
- package/dest/store/l2_tips_cache.d.ts +19 -0
- package/dest/store/l2_tips_cache.d.ts.map +1 -0
- package/dest/store/l2_tips_cache.js +89 -0
- package/dest/store/log_store.d.ts +4 -4
- package/dest/store/log_store.d.ts.map +1 -1
- package/dest/store/log_store.js +105 -47
- package/dest/store/message_store.js +1 -1
- package/dest/test/fake_l1_state.d.ts +16 -4
- package/dest/test/fake_l1_state.d.ts.map +1 -1
- package/dest/test/fake_l1_state.js +84 -20
- package/dest/test/index.js +3 -1
- package/dest/test/mock_archiver.d.ts +1 -1
- package/dest/test/mock_archiver.d.ts.map +1 -1
- package/dest/test/mock_archiver.js +3 -2
- package/dest/test/mock_l2_block_source.d.ts +39 -23
- package/dest/test/mock_l2_block_source.d.ts.map +1 -1
- package/dest/test/mock_l2_block_source.js +157 -112
- package/dest/test/mock_structs.d.ts +6 -2
- package/dest/test/mock_structs.d.ts.map +1 -1
- package/dest/test/mock_structs.js +24 -10
- package/dest/test/noop_l1_archiver.d.ts +26 -0
- package/dest/test/noop_l1_archiver.d.ts.map +1 -0
- package/dest/test/noop_l1_archiver.js +72 -0
- package/package.json +14 -13
- package/src/archiver.ts +106 -149
- package/src/errors.ts +12 -0
- package/src/factory.ts +29 -12
- package/src/index.ts +1 -0
- package/src/l1/README.md +25 -68
- package/src/l1/bin/retrieve-calldata.ts +45 -33
- package/src/l1/calldata_retriever.ts +249 -379
- package/src/l1/data_retrieval.ts +10 -20
- package/src/l1/spire_proposer.ts +7 -15
- package/src/l1/validate_trace.ts +24 -6
- package/src/modules/data_source_base.ts +76 -166
- package/src/modules/data_store_updater.ts +130 -66
- package/src/modules/instrumentation.ts +26 -14
- package/src/modules/l1_synchronizer.ts +55 -26
- package/src/store/block_store.ts +216 -92
- package/src/store/contract_class_store.ts +11 -7
- package/src/store/kv_archiver_store.ts +88 -30
- package/src/store/l2_tips_cache.ts +89 -0
- package/src/store/log_store.ts +171 -55
- package/src/store/message_store.ts +1 -1
- package/src/test/fake_l1_state.ts +112 -23
- package/src/test/index.ts +3 -0
- package/src/test/mock_archiver.ts +3 -2
- package/src/test/mock_l2_block_source.ts +211 -129
- package/src/test/mock_structs.ts +45 -15
- package/src/test/noop_l1_archiver.ts +115 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BlockNumber } from '@aztec/foundation/branded-types';
|
|
2
|
+
import { filterAsync } from '@aztec/foundation/collection';
|
|
2
3
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
4
|
import { createLogger } from '@aztec/foundation/log';
|
|
4
5
|
import { ContractClassPublishedEvent, PrivateFunctionBroadcastedEvent, UtilityFunctionBroadcastedEvent } from '@aztec/protocol-contracts/class-registry';
|
|
5
6
|
import { ContractInstancePublishedEvent, ContractInstanceUpdatedEvent } from '@aztec/protocol-contracts/instance-registry';
|
|
6
|
-
import {
|
|
7
|
+
import { validateCheckpoint } from '@aztec/stdlib/checkpoint';
|
|
8
|
+
import { computeContractAddressFromInstance, computePublicBytecodeCommitment, isValidPrivateFunctionMembershipProof, isValidUtilityFunctionMembershipProof } from '@aztec/stdlib/contract';
|
|
7
9
|
import groupBy from 'lodash.groupby';
|
|
8
10
|
/** Operation type for contract data updates. */ var Operation = /*#__PURE__*/ function(Operation) {
|
|
9
11
|
Operation[Operation["Store"] = 0] = "Store";
|
|
@@ -12,36 +14,43 @@ import groupBy from 'lodash.groupby';
|
|
|
12
14
|
}(Operation || {});
|
|
13
15
|
/** Archiver helper module to handle updates to the data store. */ export class ArchiverDataStoreUpdater {
|
|
14
16
|
store;
|
|
17
|
+
l2TipsCache;
|
|
18
|
+
opts;
|
|
15
19
|
log;
|
|
16
|
-
constructor(store){
|
|
20
|
+
constructor(store, l2TipsCache, opts = {}){
|
|
17
21
|
this.store = store;
|
|
22
|
+
this.l2TipsCache = l2TipsCache;
|
|
23
|
+
this.opts = opts;
|
|
18
24
|
this.log = createLogger('archiver:store_updater');
|
|
19
25
|
}
|
|
20
26
|
/**
|
|
21
|
-
* Adds blocks to the store with contract class/instance extraction from logs.
|
|
27
|
+
* Adds proposed blocks to the store with contract class/instance extraction from logs.
|
|
28
|
+
* These are uncheckpointed blocks that have been proposed by the sequencer but not yet included in a checkpoint on L1.
|
|
22
29
|
* Extracts ContractClassPublished, ContractInstancePublished, ContractInstanceUpdated events,
|
|
23
30
|
* and individually broadcasted functions from the block logs.
|
|
24
31
|
*
|
|
25
|
-
* @param blocks - The L2 blocks to add.
|
|
32
|
+
* @param blocks - The proposed L2 blocks to add.
|
|
26
33
|
* @param pendingChainValidationStatus - Optional validation status to set.
|
|
27
34
|
* @returns True if the operation is successful.
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
await this.store.
|
|
35
|
+
*/ async addProposedBlocks(blocks, pendingChainValidationStatus) {
|
|
36
|
+
const result = await this.store.transactionAsync(async ()=>{
|
|
37
|
+
await this.store.addProposedBlocks(blocks);
|
|
31
38
|
const opResults = await Promise.all([
|
|
32
39
|
// Update the pending chain validation status if provided
|
|
33
40
|
pendingChainValidationStatus && this.store.setPendingChainValidationStatus(pendingChainValidationStatus),
|
|
34
41
|
// Add any logs emitted during the retrieved blocks
|
|
35
42
|
this.store.addLogs(blocks),
|
|
36
43
|
// Unroll all logs emitted during the retrieved blocks and extract any contract classes and instances from them
|
|
37
|
-
...blocks.map((block)=>this.
|
|
44
|
+
...blocks.map((block)=>this.addContractDataToDb(block))
|
|
38
45
|
]);
|
|
46
|
+
await this.l2TipsCache?.refresh();
|
|
39
47
|
return opResults.every(Boolean);
|
|
40
48
|
});
|
|
49
|
+
return result;
|
|
41
50
|
}
|
|
42
51
|
/**
|
|
43
52
|
* Reconciles local blocks with incoming checkpoints from L1.
|
|
44
|
-
* Adds checkpoints to the store with contract class/instance extraction from logs.
|
|
53
|
+
* Adds new checkpoints to the store with contract class/instance extraction from logs.
|
|
45
54
|
* Prunes any local blocks that conflict with checkpoint data (by comparing archive roots).
|
|
46
55
|
* Extracts ContractClassPublished, ContractInstancePublished, ContractInstanceUpdated events,
|
|
47
56
|
* and individually broadcasted functions from the checkpoint block logs.
|
|
@@ -49,12 +58,17 @@ import groupBy from 'lodash.groupby';
|
|
|
49
58
|
* @param checkpoints - The published checkpoints to add.
|
|
50
59
|
* @param pendingChainValidationStatus - Optional validation status to set.
|
|
51
60
|
* @returns Result with information about any pruned blocks.
|
|
52
|
-
*/
|
|
53
|
-
|
|
61
|
+
*/ async addCheckpoints(checkpoints, pendingChainValidationStatus) {
|
|
62
|
+
for (const checkpoint of checkpoints){
|
|
63
|
+
validateCheckpoint(checkpoint.checkpoint, {
|
|
64
|
+
rollupManaLimit: this.opts?.rollupManaLimit
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
const result = await this.store.transactionAsync(async ()=>{
|
|
54
68
|
// Before adding checkpoints, check for conflicts with local blocks if any
|
|
55
69
|
const { prunedBlocks, lastAlreadyInsertedBlockNumber } = await this.pruneMismatchingLocalBlocks(checkpoints);
|
|
56
70
|
await this.store.addCheckpoints(checkpoints);
|
|
57
|
-
// Filter out blocks that were already inserted via
|
|
71
|
+
// Filter out blocks that were already inserted via addProposedBlocks() to avoid duplicating logs/contract data
|
|
58
72
|
const newBlocks = checkpoints.flatMap((ch)=>ch.checkpoint.blocks).filter((b)=>lastAlreadyInsertedBlockNumber === undefined || b.number > lastAlreadyInsertedBlockNumber);
|
|
59
73
|
await Promise.all([
|
|
60
74
|
// Update the pending chain validation status if provided
|
|
@@ -62,13 +76,15 @@ import groupBy from 'lodash.groupby';
|
|
|
62
76
|
// Add any logs emitted during the retrieved blocks
|
|
63
77
|
this.store.addLogs(newBlocks),
|
|
64
78
|
// Unroll all logs emitted during the retrieved blocks and extract any contract classes and instances from them
|
|
65
|
-
...newBlocks.map((block)=>this.
|
|
79
|
+
...newBlocks.map((block)=>this.addContractDataToDb(block))
|
|
66
80
|
]);
|
|
81
|
+
await this.l2TipsCache?.refresh();
|
|
67
82
|
return {
|
|
68
83
|
prunedBlocks,
|
|
69
84
|
lastAlreadyInsertedBlockNumber
|
|
70
85
|
};
|
|
71
86
|
});
|
|
87
|
+
return result;
|
|
72
88
|
}
|
|
73
89
|
/**
|
|
74
90
|
* Checks for local proposed blocks that do not match the ones to be checkpointed and prunes them.
|
|
@@ -112,7 +128,7 @@ import groupBy from 'lodash.groupby';
|
|
|
112
128
|
this.log.verbose(`Block number ${blockNumber} already inserted and matches checkpoint`, blockInfos);
|
|
113
129
|
lastAlreadyInsertedBlockNumber = blockNumber;
|
|
114
130
|
} else {
|
|
115
|
-
this.log.
|
|
131
|
+
this.log.info(`Conflict detected at block ${blockNumber} between checkpointed and local block`, blockInfos);
|
|
116
132
|
const prunedBlocks = await this.removeBlocksAfter(BlockNumber(blockNumber - 1));
|
|
117
133
|
return {
|
|
118
134
|
prunedBlocks,
|
|
@@ -139,67 +155,88 @@ import groupBy from 'lodash.groupby';
|
|
|
139
155
|
};
|
|
140
156
|
}
|
|
141
157
|
/**
|
|
142
|
-
* Removes all blocks strictly after the specified block number and cleans up associated contract data.
|
|
158
|
+
* Removes all uncheckpointed blocks strictly after the specified block number and cleans up associated contract data.
|
|
143
159
|
* This handles removal of provisionally added blocks along with their contract classes/instances.
|
|
160
|
+
* Verifies that each block being removed is not part of a stored checkpoint.
|
|
144
161
|
*
|
|
145
162
|
* @param blockNumber - Remove all blocks with number greater than this.
|
|
146
163
|
* @returns The removed blocks.
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
164
|
+
* @throws Error if any block to be removed is checkpointed.
|
|
165
|
+
*/ async removeUncheckpointedBlocksAfter(blockNumber) {
|
|
166
|
+
const result = await this.store.transactionAsync(async ()=>{
|
|
167
|
+
// Verify we're only removing uncheckpointed blocks
|
|
168
|
+
const lastCheckpointedBlockNumber = await this.store.getCheckpointedL2BlockNumber();
|
|
169
|
+
if (blockNumber < lastCheckpointedBlockNumber) {
|
|
170
|
+
throw new Error(`Cannot remove blocks after ${blockNumber} because checkpointed blocks exist up to ${lastCheckpointedBlockNumber}`);
|
|
171
|
+
}
|
|
172
|
+
const result = await this.removeBlocksAfter(blockNumber);
|
|
173
|
+
await this.l2TipsCache?.refresh();
|
|
174
|
+
return result;
|
|
157
175
|
});
|
|
176
|
+
return result;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Removes all blocks strictly after the given block number along with any logs and contract data.
|
|
180
|
+
* Does not remove their checkpoints.
|
|
181
|
+
*/ async removeBlocksAfter(blockNumber) {
|
|
182
|
+
// First get the blocks to be removed so we can clean up contract data
|
|
183
|
+
const removedBlocks = await this.store.removeBlocksAfter(blockNumber);
|
|
184
|
+
// Clean up contract data and logs for the removed blocks
|
|
185
|
+
await Promise.all([
|
|
186
|
+
this.store.deleteLogs(removedBlocks),
|
|
187
|
+
...removedBlocks.map((block)=>this.removeContractDataFromDb(block))
|
|
188
|
+
]);
|
|
189
|
+
return removedBlocks;
|
|
158
190
|
}
|
|
159
191
|
/**
|
|
160
|
-
*
|
|
192
|
+
* Removes all checkpoints after the given checkpoint number.
|
|
161
193
|
* Deletes ContractClassPublished, ContractInstancePublished, ContractInstanceUpdated data
|
|
162
|
-
* that was stored for the
|
|
194
|
+
* that was stored for the removed checkpoints. Also removes ALL blocks (both checkpointed
|
|
195
|
+
* and uncheckpointed) after the last block of the given checkpoint.
|
|
163
196
|
*
|
|
164
|
-
* @param
|
|
165
|
-
* @param checkpointsToUnwind - The number of checkpoints to unwind.
|
|
197
|
+
* @param checkpointNumber - Remove all checkpoints strictly after this one.
|
|
166
198
|
* @returns True if the operation is successful.
|
|
167
|
-
*/ async
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
*/ async removeCheckpointsAfter(checkpointNumber) {
|
|
200
|
+
return await this.store.transactionAsync(async ()=>{
|
|
201
|
+
const { blocksRemoved = [] } = await this.store.removeCheckpointsAfter(checkpointNumber);
|
|
202
|
+
const opResults = await Promise.all([
|
|
203
|
+
// Prune rolls back to the last proven block, which is by definition valid
|
|
204
|
+
this.store.setPendingChainValidationStatus({
|
|
205
|
+
valid: true
|
|
206
|
+
}),
|
|
207
|
+
// Remove contract data for all blocks being removed
|
|
208
|
+
...blocksRemoved.map((block)=>this.removeContractDataFromDb(block)),
|
|
209
|
+
this.store.deleteLogs(blocksRemoved)
|
|
210
|
+
]);
|
|
211
|
+
await this.l2TipsCache?.refresh();
|
|
212
|
+
return opResults.every(Boolean);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Updates the proven checkpoint number and refreshes the L2 tips cache.
|
|
217
|
+
* @param checkpointNumber - The checkpoint number to set as proven.
|
|
218
|
+
*/ async setProvenCheckpointNumber(checkpointNumber) {
|
|
219
|
+
await this.store.transactionAsync(async ()=>{
|
|
220
|
+
await this.store.setProvenCheckpointNumber(checkpointNumber);
|
|
221
|
+
await this.l2TipsCache?.refresh();
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Updates the finalized checkpoint number and refreshes the L2 tips cache.
|
|
226
|
+
* @param checkpointNumber - The checkpoint number to set as finalized.
|
|
227
|
+
*/ async setFinalizedCheckpointNumber(checkpointNumber) {
|
|
228
|
+
await this.store.transactionAsync(async ()=>{
|
|
229
|
+
await this.store.setFinalizedCheckpointNumber(checkpointNumber);
|
|
230
|
+
await this.l2TipsCache?.refresh();
|
|
231
|
+
});
|
|
195
232
|
}
|
|
196
|
-
/** Extracts and stores contract data from a single block. */
|
|
197
|
-
return this.
|
|
233
|
+
/** Extracts and stores contract data from a single block. */ addContractDataToDb(block) {
|
|
234
|
+
return this.updateContractDataOnDb(block, 0);
|
|
198
235
|
}
|
|
199
|
-
/** Removes contract data associated with a block. */
|
|
200
|
-
return this.
|
|
236
|
+
/** Removes contract data associated with a block. */ removeContractDataFromDb(block) {
|
|
237
|
+
return this.updateContractDataOnDb(block, 1);
|
|
201
238
|
}
|
|
202
|
-
/** Adds or remove contract data associated with a block. */ async
|
|
239
|
+
/** Adds or remove contract data associated with a block. */ async updateContractDataOnDb(block, operation) {
|
|
203
240
|
const contractClassLogs = block.body.txEffects.flatMap((txEffect)=>txEffect.contractClassLogs);
|
|
204
241
|
const privateLogs = block.body.txEffects.flatMap((txEffect)=>txEffect.privateLogs);
|
|
205
242
|
const publicLogs = block.body.txEffects.flatMap((txEffect)=>txEffect.publicLogs);
|
|
@@ -230,7 +267,20 @@ import groupBy from 'lodash.groupby';
|
|
|
230
267
|
/**
|
|
231
268
|
* Extracts and stores contract instances out of ContractInstancePublished events emitted by the canonical deployer contract.
|
|
232
269
|
*/ async updateDeployedContractInstances(allLogs, blockNum, operation) {
|
|
233
|
-
const
|
|
270
|
+
const allInstances = allLogs.filter((log)=>ContractInstancePublishedEvent.isContractInstancePublishedEvent(log)).map((log)=>ContractInstancePublishedEvent.fromLog(log)).map((e)=>e.toContractInstance());
|
|
271
|
+
// Verify that each instance's address matches the one derived from its fields if we're adding
|
|
272
|
+
const contractInstances = operation === 1 ? allInstances : await filterAsync(allInstances, async (instance)=>{
|
|
273
|
+
const computedAddress = await computeContractAddressFromInstance(instance);
|
|
274
|
+
if (!computedAddress.equals(instance.address)) {
|
|
275
|
+
this.log.warn(`Found contract instance with mismatched address at block ${blockNum}. Claimed ${instance.address} but computed ${computedAddress}.`, {
|
|
276
|
+
instanceAddress: instance.address.toString(),
|
|
277
|
+
computedAddress: computedAddress.toString(),
|
|
278
|
+
blockNum
|
|
279
|
+
});
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
return true;
|
|
283
|
+
});
|
|
234
284
|
if (contractInstances.length > 0) {
|
|
235
285
|
contractInstances.forEach((c)=>this.log.verbose(`${Operation[operation]} contract instance at ${c.address.toString()}`));
|
|
236
286
|
if (operation == 0) {
|
|
@@ -297,7 +347,7 @@ import groupBy from 'lodash.groupby';
|
|
|
297
347
|
if (validFnCount > 0) {
|
|
298
348
|
this.log.verbose(`Storing ${validFnCount} functions for contract class ${contractClassId.toString()}`);
|
|
299
349
|
}
|
|
300
|
-
|
|
350
|
+
await this.store.addFunctions(contractClassId, validPrivateFns, validUtilityFns);
|
|
301
351
|
}
|
|
302
352
|
return true;
|
|
303
353
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { L2Block } from '@aztec/stdlib/block';
|
|
2
|
+
import type { CheckpointData } from '@aztec/stdlib/checkpoint';
|
|
2
3
|
import { type LmdbStatsCallback, type TelemetryClient, type Tracer } from '@aztec/telemetry-client';
|
|
3
4
|
export declare class ArchiverInstrumentation {
|
|
4
5
|
private telemetry;
|
|
5
6
|
readonly tracer: Tracer;
|
|
6
7
|
private blockHeight;
|
|
8
|
+
private checkpointHeight;
|
|
7
9
|
private txCount;
|
|
8
10
|
private l1BlockHeight;
|
|
9
11
|
private proofsSubmittedDelay;
|
|
@@ -22,10 +24,10 @@ export declare class ArchiverInstrumentation {
|
|
|
22
24
|
private constructor();
|
|
23
25
|
static new(telemetry: TelemetryClient, lmdbStats?: LmdbStatsCallback): Promise<ArchiverInstrumentation>;
|
|
24
26
|
isEnabled(): boolean;
|
|
25
|
-
processNewBlocks(syncTimePerBlock: number, blocks:
|
|
27
|
+
processNewBlocks(syncTimePerBlock: number, blocks: L2Block[]): void;
|
|
26
28
|
processNewMessages(count: number, syncPerMessageMs: number): void;
|
|
27
29
|
processPrune(duration: number): void;
|
|
28
|
-
|
|
30
|
+
updateLastProvenCheckpoint(checkpoint: CheckpointData): void;
|
|
29
31
|
processProofsVerified(logs: {
|
|
30
32
|
proverId: string;
|
|
31
33
|
l2BlockNumber: bigint;
|
|
@@ -34,4 +36,4 @@ export declare class ArchiverInstrumentation {
|
|
|
34
36
|
updateL1BlockHeight(blockNumber: bigint): void;
|
|
35
37
|
recordBlockProposalTxTarget(target: string, usedTrace: boolean): void;
|
|
36
38
|
}
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5zdHJ1bWVudGF0aW9uLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbW9kdWxlcy9pbnN0cnVtZW50YXRpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxLQUFLLEVBQUUsT0FBTyxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDbkQsT0FBTyxLQUFLLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDL0QsT0FBTyxFQUtMLEtBQUssaUJBQWlCLEVBRXRCLEtBQUssZUFBZSxFQUNwQixLQUFLLE1BQU0sRUFHWixNQUFNLHlCQUF5QixDQUFDO0FBRWpDLHFCQUFhLHVCQUF1QjtJQTJCaEMsT0FBTyxDQUFDLFNBQVM7SUExQm5CLFNBQWdCLE1BQU0sRUFBRSxNQUFNLENBQUM7SUFFL0IsT0FBTyxDQUFDLFdBQVcsQ0FBUTtJQUMzQixPQUFPLENBQUMsZ0JBQWdCLENBQVE7SUFDaEMsT0FBTyxDQUFDLE9BQU8sQ0FBZ0I7S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EVBQUUsTUFBTSxDQUFBO0tBQUUsRUFBRSxRQVc5RjtJQUVNLG1CQUFtQixDQUFDLFdBQVcsRUFBRSxNQUFNLFFBRTdDO0lBRU0sMkJBQTJCLENBQUMsTUFBTSxFQUFFLE1BQU0sRUFBRSxTQUFTLEVBQUUsT0FBTyxRQUtwRTtDQUNGIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../src/modules/instrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"instrumentation.d.ts","sourceRoot":"","sources":["../../src/modules/instrumentation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAKL,KAAK,iBAAiB,EAEtB,KAAK,eAAe,EACpB,KAAK,MAAM,EAGZ,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,uBAAuB;IA2BhC,OAAO,CAAC,SAAS;IA1BnB,SAAgB,MAAM,EAAE,MAAM,CAAC;IAE/B,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,aAAa,CAAQ;IAC7B,OAAO,CAAC,oBAAoB,CAAY;IACxC,OAAO,CAAC,oBAAoB,CAAgB;IAC5C,OAAO,CAAC,SAAS,CAAc;IAE/B,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,UAAU,CAAgB;IAElC,OAAO,CAAC,oBAAoB,CAAY;IACxC,OAAO,CAAC,cAAc,CAAgB;IACtC,OAAO,CAAC,YAAY,CAAY;IAChC,OAAO,CAAC,WAAW,CAAY;IAE/B,OAAO,CAAC,sBAAsB,CAAY;IAC1C,OAAO,CAAC,gBAAgB,CAAgB;IAExC,OAAO,CAAC,0BAA0B,CAAgB;IAElD,OAAO,CAAC,GAAG,CAA4C;IAEvD,OAAO,eAoDN;IAED,OAAoB,GAAG,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,CAAC,EAAE,iBAAiB,oCAMhF;IAEM,SAAS,IAAI,OAAO,CAE1B;IAEM,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAWlE;IAEM,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,QAMhE;IAEM,YAAY,CAAC,QAAQ,EAAE,MAAM,QAGnC;IAEM,0BAA0B,CAAC,UAAU,EAAE,cAAc,QAI3D;IAEM,qBAAqB,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,QAW9F;IAEM,mBAAmB,CAAC,WAAW,EAAE,MAAM,QAE7C;IAEM,2BAA2B,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,QAKpE;CACF"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { createLogger } from '@aztec/foundation/log';
|
|
2
|
-
import { Attributes, LmdbMetrics, Metrics } from '@aztec/telemetry-client';
|
|
2
|
+
import { Attributes, LmdbMetrics, Metrics, createUpDownCounterWithDefault } from '@aztec/telemetry-client';
|
|
3
3
|
export class ArchiverInstrumentation {
|
|
4
4
|
telemetry;
|
|
5
5
|
tracer;
|
|
6
6
|
blockHeight;
|
|
7
|
+
checkpointHeight;
|
|
7
8
|
txCount;
|
|
8
9
|
l1BlockHeight;
|
|
9
10
|
proofsSubmittedDelay;
|
|
@@ -25,28 +26,36 @@ export class ArchiverInstrumentation {
|
|
|
25
26
|
this.tracer = telemetry.getTracer('Archiver');
|
|
26
27
|
const meter = telemetry.getMeter('Archiver');
|
|
27
28
|
this.blockHeight = meter.createGauge(Metrics.ARCHIVER_BLOCK_HEIGHT);
|
|
29
|
+
this.checkpointHeight = meter.createGauge(Metrics.ARCHIVER_CHECKPOINT_HEIGHT);
|
|
28
30
|
this.l1BlockHeight = meter.createGauge(Metrics.ARCHIVER_L1_BLOCK_HEIGHT);
|
|
29
|
-
this.txCount = meter
|
|
30
|
-
this.proofsSubmittedCount = meter
|
|
31
|
+
this.txCount = createUpDownCounterWithDefault(meter, Metrics.ARCHIVER_TOTAL_TXS);
|
|
32
|
+
this.proofsSubmittedCount = createUpDownCounterWithDefault(meter, Metrics.ARCHIVER_ROLLUP_PROOF_COUNT, {
|
|
33
|
+
[Attributes.PROOF_TIMED_OUT]: [
|
|
34
|
+
true,
|
|
35
|
+
false
|
|
36
|
+
]
|
|
37
|
+
});
|
|
31
38
|
this.proofsSubmittedDelay = meter.createHistogram(Metrics.ARCHIVER_ROLLUP_PROOF_DELAY);
|
|
32
39
|
this.syncDurationPerBlock = meter.createHistogram(Metrics.ARCHIVER_SYNC_PER_BLOCK);
|
|
33
|
-
this.syncBlockCount = meter
|
|
40
|
+
this.syncBlockCount = createUpDownCounterWithDefault(meter, Metrics.ARCHIVER_SYNC_BLOCK_COUNT);
|
|
34
41
|
this.manaPerBlock = meter.createHistogram(Metrics.ARCHIVER_MANA_PER_BLOCK);
|
|
35
42
|
this.txsPerBlock = meter.createHistogram(Metrics.ARCHIVER_TXS_PER_BLOCK);
|
|
36
43
|
this.syncDurationPerMessage = meter.createHistogram(Metrics.ARCHIVER_SYNC_PER_MESSAGE);
|
|
37
|
-
this.syncMessageCount = meter
|
|
44
|
+
this.syncMessageCount = createUpDownCounterWithDefault(meter, Metrics.ARCHIVER_SYNC_MESSAGE_COUNT);
|
|
38
45
|
this.pruneDuration = meter.createHistogram(Metrics.ARCHIVER_PRUNE_DURATION);
|
|
39
|
-
this.pruneCount = meter
|
|
40
|
-
this.blockProposalTxTargetCount = meter
|
|
46
|
+
this.pruneCount = createUpDownCounterWithDefault(meter, Metrics.ARCHIVER_PRUNE_COUNT);
|
|
47
|
+
this.blockProposalTxTargetCount = createUpDownCounterWithDefault(meter, Metrics.ARCHIVER_BLOCK_PROPOSAL_TX_TARGET_COUNT, {
|
|
48
|
+
[Attributes.L1_BLOCK_PROPOSAL_USED_TRACE]: [
|
|
49
|
+
true,
|
|
50
|
+
false
|
|
51
|
+
]
|
|
52
|
+
});
|
|
41
53
|
this.dbMetrics = new LmdbMetrics(meter, {
|
|
42
54
|
[Attributes.DB_DATA_TYPE]: 'archiver'
|
|
43
55
|
}, lmdbStats);
|
|
44
56
|
}
|
|
45
57
|
static async new(telemetry, lmdbStats) {
|
|
46
58
|
const instance = new ArchiverInstrumentation(telemetry, lmdbStats);
|
|
47
|
-
instance.syncBlockCount.add(0);
|
|
48
|
-
instance.syncMessageCount.add(0);
|
|
49
|
-
instance.pruneCount.add(0);
|
|
50
59
|
await instance.telemetry.flush();
|
|
51
60
|
return instance;
|
|
52
61
|
}
|
|
@@ -56,6 +65,7 @@ export class ArchiverInstrumentation {
|
|
|
56
65
|
processNewBlocks(syncTimePerBlock, blocks) {
|
|
57
66
|
this.syncDurationPerBlock.record(Math.ceil(syncTimePerBlock));
|
|
58
67
|
this.blockHeight.record(Math.max(...blocks.map((b)=>b.number)));
|
|
68
|
+
this.checkpointHeight.record(Math.max(...blocks.map((b)=>b.checkpointNumber)));
|
|
59
69
|
this.syncBlockCount.add(blocks.length);
|
|
60
70
|
for (const block of blocks){
|
|
61
71
|
this.txCount.add(block.body.txEffects.length);
|
|
@@ -74,8 +84,12 @@ export class ArchiverInstrumentation {
|
|
|
74
84
|
this.pruneCount.add(1);
|
|
75
85
|
this.pruneDuration.record(Math.ceil(duration));
|
|
76
86
|
}
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
updateLastProvenCheckpoint(checkpoint) {
|
|
88
|
+
const lastBlockNumberInCheckpoint = checkpoint.startBlock + checkpoint.blockCount - 1;
|
|
89
|
+
this.blockHeight.record(lastBlockNumberInCheckpoint, {
|
|
90
|
+
[Attributes.STATUS]: 'proven'
|
|
91
|
+
});
|
|
92
|
+
this.checkpointHeight.record(checkpoint.checkpointNumber, {
|
|
79
93
|
[Attributes.STATUS]: 'proven'
|
|
80
94
|
});
|
|
81
95
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import type { BlobClientInterface } from '@aztec/blob-client/client';
|
|
2
2
|
import { EpochCache } from '@aztec/epoch-cache';
|
|
3
3
|
import { InboxContract, RollupContract } from '@aztec/ethereum/contracts';
|
|
4
|
-
import type { L1ContractAddresses } from '@aztec/ethereum/l1-contract-addresses';
|
|
5
4
|
import type { ViemPublicClient, ViemPublicDebugClient } from '@aztec/ethereum/types';
|
|
6
5
|
import { Buffer32 } from '@aztec/foundation/buffer';
|
|
7
6
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
8
|
-
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
9
7
|
import { type Logger } from '@aztec/foundation/log';
|
|
10
8
|
import { DateProvider } from '@aztec/foundation/timer';
|
|
11
9
|
import { type ArchiverEmitter } from '@aztec/stdlib/block';
|
|
12
10
|
import { type L1RollupConstants } from '@aztec/stdlib/epoch-helpers';
|
|
13
11
|
import { type Traceable, type Tracer } from '@aztec/telemetry-client';
|
|
14
12
|
import type { KVArchiverDataStore } from '../store/kv_archiver_store.js';
|
|
13
|
+
import type { L2TipsCache } from '../store/l2_tips_cache.js';
|
|
15
14
|
import type { ArchiverInstrumentation } from './instrumentation.js';
|
|
16
15
|
/**
|
|
17
16
|
* Handles L1 synchronization for the archiver.
|
|
@@ -22,7 +21,6 @@ export declare class ArchiverL1Synchronizer implements Traceable {
|
|
|
22
21
|
private readonly debugClient;
|
|
23
22
|
private readonly rollup;
|
|
24
23
|
private readonly inbox;
|
|
25
|
-
private readonly l1Addresses;
|
|
26
24
|
private readonly store;
|
|
27
25
|
private config;
|
|
28
26
|
private readonly blobClient;
|
|
@@ -37,16 +35,14 @@ export declare class ArchiverL1Synchronizer implements Traceable {
|
|
|
37
35
|
private l1Timestamp;
|
|
38
36
|
private readonly updater;
|
|
39
37
|
readonly tracer: Tracer;
|
|
40
|
-
constructor(publicClient: ViemPublicClient, debugClient: ViemPublicDebugClient, rollup: RollupContract, inbox: InboxContract,
|
|
41
|
-
slashingProposerAddress: EthAddress;
|
|
42
|
-
}, store: KVArchiverDataStore, config: {
|
|
38
|
+
constructor(publicClient: ViemPublicClient, debugClient: ViemPublicDebugClient, rollup: RollupContract, inbox: InboxContract, store: KVArchiverDataStore, config: {
|
|
43
39
|
batchSize: number;
|
|
44
40
|
skipValidateCheckpointAttestations?: boolean;
|
|
45
41
|
maxAllowedEthClientDriftSeconds: number;
|
|
46
42
|
}, blobClient: BlobClientInterface, epochCache: EpochCache, dateProvider: DateProvider, instrumentation: ArchiverInstrumentation, l1Constants: L1RollupConstants & {
|
|
47
43
|
l1StartBlockHash: Buffer32;
|
|
48
44
|
genesisArchiveRoot: Fr;
|
|
49
|
-
}, events: ArchiverEmitter, tracer: Tracer, log?: Logger);
|
|
45
|
+
}, events: ArchiverEmitter, tracer: Tracer, l2TipsCache?: L2TipsCache, log?: Logger);
|
|
50
46
|
/** Sets new config */
|
|
51
47
|
setConfig(newConfig: {
|
|
52
48
|
batchSize: number;
|
|
@@ -60,6 +56,7 @@ export declare class ArchiverL1Synchronizer implements Traceable {
|
|
|
60
56
|
/** Checks that the ethereum node we are connected to has a latest timestamp no more than the allowed drift. Throw if not. */
|
|
61
57
|
testEthereumNodeSynced(): Promise<void>;
|
|
62
58
|
syncFromL1(initialSyncComplete: boolean): Promise<void>;
|
|
59
|
+
private updateFinalizedCheckpoint;
|
|
63
60
|
private pruneUncheckpointedBlocks;
|
|
64
61
|
private canPrune;
|
|
65
62
|
private handleEpochPrune;
|
|
@@ -72,4 +69,4 @@ export declare class ArchiverL1Synchronizer implements Traceable {
|
|
|
72
69
|
private checkForNewCheckpointsBeforeL1SyncPoint;
|
|
73
70
|
private getCheckpointHeader;
|
|
74
71
|
}
|
|
75
|
-
//# sourceMappingURL=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0lBNEQ5QixPQUFPLENBQUMsU0FBUztZQVdILG9CQUFvQjtZQXVGcEIscUJBQXFCO1lBa0JyQixzQkFBc0I7WUF5Q3RCLGNBQWM7WUFTZCxpQkFBaUI7WUEwV2pCLHVDQUF1QztZQThDdkMsbUJBQW1CO0NBT2xDIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"l1_synchronizer.d.ts","sourceRoot":"","sources":["../../src/modules/l1_synchronizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"l1_synchronizer.d.ts","sourceRoot":"","sources":["../../src/modules/l1_synchronizer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAGrF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAkB,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,KAAK,eAAe,EAAsD,MAAM,qBAAqB,CAAC;AAE/G,OAAO,EAAE,KAAK,iBAAiB,EAAwC,MAAM,6BAA6B,CAAC;AAE3G,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,MAAM,EAAyB,MAAM,yBAAyB,CAAC;A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