grandpa: cleanup sync bounds (#9127)

* grandpa: cleanup sync bounds

* grandpa: cleanup imports

* remove cargo patch
This commit is contained in:
André Silva
2021-06-16 13:51:09 +01:00
committed by GitHub
parent 5fa96f2ed2
commit ae5cd339b5
16 changed files with 189 additions and 149 deletions
@@ -62,9 +62,10 @@ pub struct FinalityProofProvider<BE, Block: BlockT> {
shared_authority_set: Option<SharedAuthoritySet<Block::Hash, NumberFor<Block>>>,
}
impl<B, Block: BlockT> FinalityProofProvider<B, Block>
impl<B, Block> FinalityProofProvider<B, Block>
where
B: Backend<Block> + Send + Sync + 'static,
Block: BlockT,
B: Backend<Block>,
{
/// Create new finality proof provider using:
///
@@ -97,7 +98,7 @@ where
impl<B, Block> FinalityProofProvider<B, Block>
where
Block: BlockT,
B: Backend<Block> + Send + Sync + 'static,
B: Backend<Block>,
{
/// Prove finality for the given block number by returning a Justification for the last block of
/// the authority set.