Restores display for validator keys

This commit is contained in:
Age Manning 2019-03-30 14:28:42 +11:00
parent d3a6d73153
commit deb0abd4a8
No known key found for this signature in database
GPG Key ID: 05EED64B79E06A93

View File

@ -140,9 +140,9 @@ impl From<EpochDutiesMapError> for Error {
fn print_duties(log: &slog::Logger, duties: EpochDuties) {
for (pk, duty) in duties.iter() {
if let Some(display_duty) = duty {
info!(log, "Validator: {:?}",pk; "Duty" => format!("{}",display_duty));
info!(log, "Validator: {}",pk; "Duty" => format!("{}",display_duty));
} else {
info!(log, "Validator: {:?}",pk; "Duty" => "None");
info!(log, "Validator: {}",pk; "Duty" => "None");
}
}
}