Skip to content
Snippets Groups Projects
Commit d622449d authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

allow distance to fail

parent 6940507f
No related branches found
No related tags found
No related merge requests found
Pipeline #39034 waiting for manual action
......@@ -503,7 +503,15 @@ where
FullBackend,
>(
&*client, parent, distance_dir, &babe_owner_keys.clone()
)?;
);
// provides fallback when distance inherent data provider crashes
let distance = match distance {
Ok(distance) => distance,
Err(e) => {
log::warn!("{:?}", e);
sp_distance::InherentDataProvider::new(None)
}
};
Ok((timestamp, babe, distance))
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment