@aztec/node-lib 0.84.0 → 0.85.0
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.
|
@@ -149,7 +149,12 @@ export async function trySnapshotSync(config, log) {
|
|
|
149
149
|
}
|
|
150
150
|
/** Deletes target dir and writes the new version file. */ async function prepareTarget(target, schemaVersion, rollupAddress) {
|
|
151
151
|
const noOpen = ()=>Promise.resolve(undefined);
|
|
152
|
-
const versionManager = new DatabaseVersionManager(
|
|
152
|
+
const versionManager = new DatabaseVersionManager({
|
|
153
|
+
schemaVersion,
|
|
154
|
+
rollupAddress,
|
|
155
|
+
dataDirectory: target,
|
|
156
|
+
onOpen: noOpen
|
|
157
|
+
});
|
|
153
158
|
await versionManager.resetDataDirectory();
|
|
154
159
|
await versionManager.writeVersion();
|
|
155
160
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/node-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.85.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./actions": "./dest/actions/index.js",
|
|
@@ -52,24 +52,24 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@aztec/archiver": "0.
|
|
56
|
-
"@aztec/bb-prover": "0.
|
|
57
|
-
"@aztec/blob-sink": "0.
|
|
58
|
-
"@aztec/constants": "0.
|
|
59
|
-
"@aztec/epoch-cache": "0.
|
|
60
|
-
"@aztec/ethereum": "0.
|
|
61
|
-
"@aztec/foundation": "0.
|
|
62
|
-
"@aztec/kv-store": "0.
|
|
63
|
-
"@aztec/merkle-tree": "0.
|
|
64
|
-
"@aztec/p2p": "0.
|
|
65
|
-
"@aztec/protocol-contracts": "0.
|
|
66
|
-
"@aztec/prover-client": "0.
|
|
67
|
-
"@aztec/sequencer-client": "0.
|
|
68
|
-
"@aztec/simulator": "0.
|
|
69
|
-
"@aztec/stdlib": "0.
|
|
70
|
-
"@aztec/telemetry-client": "0.
|
|
71
|
-
"@aztec/validator-client": "0.
|
|
72
|
-
"@aztec/world-state": "0.
|
|
55
|
+
"@aztec/archiver": "0.85.0",
|
|
56
|
+
"@aztec/bb-prover": "0.85.0",
|
|
57
|
+
"@aztec/blob-sink": "0.85.0",
|
|
58
|
+
"@aztec/constants": "0.85.0",
|
|
59
|
+
"@aztec/epoch-cache": "0.85.0",
|
|
60
|
+
"@aztec/ethereum": "0.85.0",
|
|
61
|
+
"@aztec/foundation": "0.85.0",
|
|
62
|
+
"@aztec/kv-store": "0.85.0",
|
|
63
|
+
"@aztec/merkle-tree": "0.85.0",
|
|
64
|
+
"@aztec/p2p": "0.85.0",
|
|
65
|
+
"@aztec/protocol-contracts": "0.85.0",
|
|
66
|
+
"@aztec/prover-client": "0.85.0",
|
|
67
|
+
"@aztec/sequencer-client": "0.85.0",
|
|
68
|
+
"@aztec/simulator": "0.85.0",
|
|
69
|
+
"@aztec/stdlib": "0.85.0",
|
|
70
|
+
"@aztec/telemetry-client": "0.85.0",
|
|
71
|
+
"@aztec/validator-client": "0.85.0",
|
|
72
|
+
"@aztec/world-state": "0.85.0",
|
|
73
73
|
"tslib": "^2.4.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
@@ -196,7 +196,12 @@ export async function trySnapshotSync(config: SnapshotSyncConfig, log: Logger) {
|
|
|
196
196
|
/** Deletes target dir and writes the new version file. */
|
|
197
197
|
async function prepareTarget(target: string, schemaVersion: number, rollupAddress: EthAddress) {
|
|
198
198
|
const noOpen = () => Promise.resolve(undefined);
|
|
199
|
-
const versionManager = new DatabaseVersionManager<undefined>(
|
|
199
|
+
const versionManager = new DatabaseVersionManager<undefined>({
|
|
200
|
+
schemaVersion,
|
|
201
|
+
rollupAddress,
|
|
202
|
+
dataDirectory: target,
|
|
203
|
+
onOpen: noOpen,
|
|
204
|
+
});
|
|
200
205
|
await versionManager.resetDataDirectory();
|
|
201
206
|
await versionManager.writeVersion();
|
|
202
207
|
}
|