Skip to content

Commit 80882f3

Browse files
committed
feature(client-cli): improve verify command output with non verifiable files
1 parent 18d9c06 commit 80882f3

File tree

1 file changed

+10
-2
lines changed
  • mithril-client-cli/src/commands/cardano_db

1 file changed

+10
-2
lines changed

mithril-client-cli/src/commands/cardano_db/verify.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,16 @@ impl CardanoDbVerifyCommand {
224224
"immutables_verification_error_file": json_file_path,
225225
"immutables_dir": lists.immutables_dir,
226226
"missing_files_count": lists.missing.len(),
227-
"tampered_files_count": lists.tampered.len()
227+
"tampered_files_count": lists.tampered.len(),
228+
"non_verifiable_files_count": lists.non_verifiable.len(),
228229
}
229230
});
230231

231232
println!("{json}");
232233
} else {
233234
println!("{error_message}");
234235
println!(
235-
"See the lists of all missing and tampered files in {}",
236+
"See the lists of all missing, tampered and non verifiable files in {}",
236237
json_file_path.display()
237238
);
238239
if !lists.missing.is_empty() {
@@ -244,6 +245,12 @@ impl CardanoDbVerifyCommand {
244245
lists.tampered.len()
245246
);
246247
}
248+
if !lists.non_verifiable.is_empty() {
249+
println!(
250+
"Number of non verifiable immutable files: {:?}",
251+
lists.non_verifiable.len()
252+
);
253+
}
247254
}
248255
}
249256
}
@@ -260,6 +267,7 @@ fn write_json_file_error(date: DateTime<Utc>, lists: &ImmutableFilesLists) -> Pa
260267
"immutables_dir": lists.immutables_dir,
261268
"missing-files": lists.missing,
262269
"tampered-files": lists.tampered,
270+
"non-verifiable-files": lists.non_verifiable,
263271
}))
264272
.unwrap(),
265273
)

0 commit comments

Comments
 (0)