@aztec/node-lib 0.86.0-nightly.20250425 → 0.86.0-nightly.20250427
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-sync.d.ts","sourceRoot":"","sources":["../../src/actions/snapshot-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,KAAK,cAAc,EAAuB,MAAM,iBAAiB,CAAC;AAErH,OAAO,EAAE,KAAK,oBAAoB,EAAmB,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EACL,KAAK,gBAAgB,EAKtB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAK3D,KAAK,kBAAkB,GAAG,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,cAAc,CAAC,GAC3E,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,eAAe,CAAC,GAChD,IAAI,CAAC,cAAc,EAAE,wBAAwB,GAAG,SAAS,CAAC,GAC1D,QAAQ,CAAC,eAAe,CAAC,GACzB,oBAAoB,GAAG;IACrB,2BAA2B,CAAC,EAAE,MAAM,CAAC;CACtC,CAAC;AAEJ;;;GAGG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,oBA2H5E;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,EAC5C,GAAG,EAAE,MAAM,EACX,MAAM,EAAE;I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AAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,iBAgDnF"}
|
|
@@ -137,6 +137,9 @@ const MIN_L1_BLOCKS_TO_TRIGGER_REPLACE = 86400 / 2 / 12;
|
|
|
137
137
|
let downloadDir;
|
|
138
138
|
try {
|
|
139
139
|
// Download the snapshot to a temp location.
|
|
140
|
+
await mkdir(dataDirectory, {
|
|
141
|
+
recursive: true
|
|
142
|
+
});
|
|
140
143
|
downloadDir = await mkdtemp(join(dataDirectory, 'download-'));
|
|
141
144
|
const downloadPaths = makeSnapshotPaths(downloadDir);
|
|
142
145
|
log.info(`Downloading snapshot to ${downloadDir}`, {
|
|
@@ -153,7 +156,9 @@ const MIN_L1_BLOCKS_TO_TRIGGER_REPLACE = 86400 / 2 / 12;
|
|
|
153
156
|
await prepareTarget(archiverPath, ARCHIVER_DB_VERSION, rollupAddress);
|
|
154
157
|
await rename(downloadPaths.archiver, join(archiverPath, 'data.mdb'));
|
|
155
158
|
log.info(`Archiver database set up from snapshot`, {
|
|
156
|
-
path: archiverPath
|
|
159
|
+
path: archiverPath,
|
|
160
|
+
dbVersion: ARCHIVER_DB_VERSION,
|
|
161
|
+
rollupAddress
|
|
157
162
|
});
|
|
158
163
|
// Same for the world state dbs, only that we do not close them, since we assume they are not yet in use
|
|
159
164
|
const worldStateBasePath = join(dataDirectory, WORLD_STATE_DIR);
|
|
@@ -165,7 +170,9 @@ const MIN_L1_BLOCKS_TO_TRIGGER_REPLACE = 86400 / 2 / 12;
|
|
|
165
170
|
});
|
|
166
171
|
await rename(downloadPaths[name], join(path, 'data.mdb'));
|
|
167
172
|
log.info(`World state database ${name} set up from snapshot`, {
|
|
168
|
-
path
|
|
173
|
+
path,
|
|
174
|
+
dbVersion: WORLD_STATE_DB_VERSION,
|
|
175
|
+
rollupAddress
|
|
169
176
|
});
|
|
170
177
|
}
|
|
171
178
|
} finally{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/node-lib",
|
|
3
|
-
"version": "0.86.0-nightly.
|
|
3
|
+
"version": "0.86.0-nightly.20250427",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./actions": "./dest/actions/index.js",
|
|
@@ -50,24 +50,24 @@
|
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@aztec/archiver": "0.86.0-nightly.
|
|
54
|
-
"@aztec/bb-prover": "0.86.0-nightly.
|
|
55
|
-
"@aztec/blob-sink": "0.86.0-nightly.
|
|
56
|
-
"@aztec/constants": "0.86.0-nightly.
|
|
57
|
-
"@aztec/epoch-cache": "0.86.0-nightly.
|
|
58
|
-
"@aztec/ethereum": "0.86.0-nightly.
|
|
59
|
-
"@aztec/foundation": "0.86.0-nightly.
|
|
60
|
-
"@aztec/kv-store": "0.86.0-nightly.
|
|
61
|
-
"@aztec/merkle-tree": "0.86.0-nightly.
|
|
62
|
-
"@aztec/p2p": "0.86.0-nightly.
|
|
63
|
-
"@aztec/protocol-contracts": "0.86.0-nightly.
|
|
64
|
-
"@aztec/prover-client": "0.86.0-nightly.
|
|
65
|
-
"@aztec/sequencer-client": "0.86.0-nightly.
|
|
66
|
-
"@aztec/simulator": "0.86.0-nightly.
|
|
67
|
-
"@aztec/stdlib": "0.86.0-nightly.
|
|
68
|
-
"@aztec/telemetry-client": "0.86.0-nightly.
|
|
69
|
-
"@aztec/validator-client": "0.86.0-nightly.
|
|
70
|
-
"@aztec/world-state": "0.86.0-nightly.
|
|
53
|
+
"@aztec/archiver": "0.86.0-nightly.20250427",
|
|
54
|
+
"@aztec/bb-prover": "0.86.0-nightly.20250427",
|
|
55
|
+
"@aztec/blob-sink": "0.86.0-nightly.20250427",
|
|
56
|
+
"@aztec/constants": "0.86.0-nightly.20250427",
|
|
57
|
+
"@aztec/epoch-cache": "0.86.0-nightly.20250427",
|
|
58
|
+
"@aztec/ethereum": "0.86.0-nightly.20250427",
|
|
59
|
+
"@aztec/foundation": "0.86.0-nightly.20250427",
|
|
60
|
+
"@aztec/kv-store": "0.86.0-nightly.20250427",
|
|
61
|
+
"@aztec/merkle-tree": "0.86.0-nightly.20250427",
|
|
62
|
+
"@aztec/p2p": "0.86.0-nightly.20250427",
|
|
63
|
+
"@aztec/protocol-contracts": "0.86.0-nightly.20250427",
|
|
64
|
+
"@aztec/prover-client": "0.86.0-nightly.20250427",
|
|
65
|
+
"@aztec/sequencer-client": "0.86.0-nightly.20250427",
|
|
66
|
+
"@aztec/simulator": "0.86.0-nightly.20250427",
|
|
67
|
+
"@aztec/stdlib": "0.86.0-nightly.20250427",
|
|
68
|
+
"@aztec/telemetry-client": "0.86.0-nightly.20250427",
|
|
69
|
+
"@aztec/validator-client": "0.86.0-nightly.20250427",
|
|
70
|
+
"@aztec/world-state": "0.86.0-nightly.20250427",
|
|
71
71
|
"tslib": "^2.4.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -181,6 +181,7 @@ export async function snapshotSync(
|
|
|
181
181
|
|
|
182
182
|
try {
|
|
183
183
|
// Download the snapshot to a temp location.
|
|
184
|
+
await mkdir(dataDirectory, { recursive: true });
|
|
184
185
|
downloadDir = await mkdtemp(join(dataDirectory, 'download-'));
|
|
185
186
|
const downloadPaths = makeSnapshotPaths(downloadDir);
|
|
186
187
|
log.info(`Downloading snapshot to ${downloadDir}`, { snapshot, downloadPaths });
|
|
@@ -191,7 +192,11 @@ export async function snapshotSync(
|
|
|
191
192
|
const archiverPath = join(dataDirectory, ARCHIVER_STORE_NAME);
|
|
192
193
|
await prepareTarget(archiverPath, ARCHIVER_DB_VERSION, rollupAddress);
|
|
193
194
|
await rename(downloadPaths.archiver, join(archiverPath, 'data.mdb'));
|
|
194
|
-
log.info(`Archiver database set up from snapshot`, {
|
|
195
|
+
log.info(`Archiver database set up from snapshot`, {
|
|
196
|
+
path: archiverPath,
|
|
197
|
+
dbVersion: ARCHIVER_DB_VERSION,
|
|
198
|
+
rollupAddress,
|
|
199
|
+
});
|
|
195
200
|
|
|
196
201
|
// Same for the world state dbs, only that we do not close them, since we assume they are not yet in use
|
|
197
202
|
const worldStateBasePath = join(dataDirectory, WORLD_STATE_DIR);
|
|
@@ -200,7 +205,11 @@ export async function snapshotSync(
|
|
|
200
205
|
const path = join(worldStateBasePath, dir);
|
|
201
206
|
await mkdir(path, { recursive: true });
|
|
202
207
|
await rename(downloadPaths[name], join(path, 'data.mdb'));
|
|
203
|
-
log.info(`World state database ${name} set up from snapshot`, {
|
|
208
|
+
log.info(`World state database ${name} set up from snapshot`, {
|
|
209
|
+
path,
|
|
210
|
+
dbVersion: WORLD_STATE_DB_VERSION,
|
|
211
|
+
rollupAddress,
|
|
212
|
+
});
|
|
204
213
|
}
|
|
205
214
|
} finally {
|
|
206
215
|
if (downloadDir) {
|