File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
docs/website/root/manual/develop/nodes Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -327,21 +327,32 @@ async fn main() -> mithril_client::MithrilResult<()> {
327
327
. download_unpack (
328
328
& snapshot ,
329
329
& immutable_file_range ,
330
- target_directory ,
330
+ & target_directory ,
331
331
download_unpack_options ,
332
332
)
333
333
. await ? ;
334
334
335
+ let verified_digests = client
336
+ . cardano_database_v2 ()
337
+ . download_and_verify_digests (
338
+ & certificate ,
339
+ & snapshot
340
+ )
341
+ . await ? ;
342
+
343
+ let allow_missing_immutables_files = false ;
335
344
let merkle_proof = client
336
345
. cardano_database_v2 ()
337
- . compute_merkle_proof (
346
+ . verify_cardano_database (
338
347
& certificate ,
339
348
& snapshot ,
340
349
& immutable_file_range ,
341
- target_directory ,
342
- )
343
- . await ? ;
344
- merkle_proof . verify ()? ;
350
+ allow_missing_immutables_files ,
351
+ & target_directory ,
352
+ & verified_digest ,
353
+ ),
354
+ )
355
+ . await ? ;
345
356
346
357
let message = MessageBuilder :: new ()
347
358
. compute_cardano_database_message (& certificate , & merkle_proof )
You can’t perform that action at this time.
0 commit comments