mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 18:11:10 +00:00
make SelectChain async (#9128)
* make SelectChain async * make JustificationImport async
This commit is contained in:
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user