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

in non-manual sealing and only here

parent d622449d
No related branches found
No related tags found
No related merge requests found
Pipeline #39035 waiting for manual action
......@@ -503,15 +503,8 @@ 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)
}
};
)?;
// in case of manual sealing, the distance is forced to succeed
Ok((timestamp, babe, distance))
}
},
......@@ -557,7 +550,17 @@ where
FullBackend,
>(
&*client, parent, distance_dir, &babe_owner_keys.clone()
)?;
);
// provides fallback when distance inherent data provider crashes
// (only when sealing is not manual)
let distance = match distance {
Ok(distance) => distance,
Err(e) => {
log::warn!("{:?}", e);
sp_distance::InherentDataProvider::new(None)
}
};
Ok((slot, timestamp, storage_proof, distance))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment