File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
mithril-client-cli/src/commands Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ impl PreparedCardanoDbDownload {
185
185
& db_dir,
186
186
& cardano_db_message,
187
187
self . is_json_output_enabled ( ) ,
188
+ self . include_ancillary ,
188
189
) ?;
189
190
190
191
Ok ( ( ) )
@@ -328,6 +329,7 @@ impl PreparedCardanoDbDownload {
328
329
db_dir : & Path ,
329
330
cardano_db : & Snapshot ,
330
331
json_output : bool ,
332
+ include_ancillary : bool ,
331
333
) -> MithrilResult < ( ) > {
332
334
let canonicalized_filepath = & db_dir. canonicalize ( ) . with_context ( || {
333
335
format ! (
@@ -361,6 +363,19 @@ impl PreparedCardanoDbDownload {
361
363
) ;
362
364
}
363
365
366
+ if include_ancillary {
367
+ println ! (
368
+ r###""Upgrade and replace the restored ledger state snapshot to LMDB flavor by running the command:
369
+
370
+ mithril-client --unstable tools utxo-hd snapshot-converter --db-directory {} --cardano-node-version {} --utxo-hd-flavor LMDB --cardano-network {} --commit
371
+
372
+ "### ,
373
+ db_dir. display( ) ,
374
+ cardano_db. cardano_node_version,
375
+ cardano_db. network
376
+ ) ;
377
+ }
378
+
364
379
Ok ( ( ) )
365
380
}
366
381
}
Original file line number Diff line number Diff line change @@ -245,6 +245,9 @@ impl PreparedCardanoDbV2Download {
245
245
& restoration_options. db_dir ,
246
246
& cardano_db_message,
247
247
self . is_json_output_enabled ( ) ,
248
+ restoration_options
249
+ . download_unpack_options
250
+ . include_ancillary ,
248
251
) ?;
249
252
250
253
Ok ( ( ) )
@@ -488,6 +491,7 @@ impl PreparedCardanoDbV2Download {
488
491
db_dir : & Path ,
489
492
cardano_db_snapshot : & CardanoDatabaseSnapshot ,
490
493
json_output : bool ,
494
+ include_ancillary : bool ,
491
495
) -> MithrilResult < ( ) > {
492
496
let canonicalized_filepath = & db_dir. canonicalize ( ) . with_context ( || {
493
497
format ! (
@@ -521,6 +525,19 @@ impl PreparedCardanoDbV2Download {
521
525
) ;
522
526
}
523
527
528
+ if include_ancillary {
529
+ println ! (
530
+ r###""Upgrade and replace the restored ledger state snapshot to LMDB flavor by running the command:
531
+
532
+ mithril-client --unstable tools utxo-hd snapshot-converter --db-directory {} --cardano-node-version {} --utxo-hd-flavor LMDB --cardano-network {} --commit
533
+
534
+ "### ,
535
+ db_dir. display( ) ,
536
+ cardano_db_snapshot. cardano_node_version,
537
+ cardano_db_snapshot. network
538
+ ) ;
539
+ }
540
+
524
541
Ok ( ( ) )
525
542
}
526
543
}
You can’t perform that action at this time.
0 commit comments