+ match error.kind() {
+ ErrorKind::InvalidData => {
+ // the response length was likely 0
+ log_error!(logger, "Could't find block hash at height {}: Invalid response! Please make sure the `-rest=1` flag is set.", block_height);
+ }
+ _ => {
+ log_error!(logger, "Could't find block hash at height {}: {}", block_height, error.to_string());
+ }
+ }