make SelectChain async (#9128)

* make SelectChain async

* make JustificationImport async
This commit is contained in:
André Silva authored and GitHub committed 2021-06-20 11:01:09 +00:00
1 parent 650fc2f9c9
commit a26ec52450
18 files changed
+800 -454

No files matched your search

+6 -1
View File
@@ -1075,10 +1075,15 @@ impl TestNetFactory for TestNet {
pub struct ForceFinalized(PeersClient);
#[async_trait::async_trait]
impl JustificationImport<Block> for ForceFinalized {
type Error = ConsensusError;
fn import_justification(
async fn on_start(&mut self) -> Vec<(H256, NumberFor<Block>)> {
Vec::new()
}
async fn import_justification(
&mut self,
hash: H256,
_number: NumberFor<Block>,