Companion for substrate#11962 (#5852)

* Companion for substrate#11962

* update lockfile

Co-authored-by: acatangiu <adrian@parity.io>
This commit is contained in:
ZhiYong
2022-08-04 18:24:34 +08:00
committed by GitHub
parent 8d1bba18af
commit 27747b4d1a
3 changed files with 176 additions and 176 deletions
+171 -171
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -590,7 +590,7 @@ where
finality_provider: finality_proof_provider.clone(), finality_provider: finality_proof_provider.clone(),
}, },
beefy: polkadot_rpc::BeefyDeps { beefy: polkadot_rpc::BeefyDeps {
beefy_commitment_stream: beefy_rpc_links.from_voter_justif_stream.clone(), beefy_finality_proof_stream: beefy_rpc_links.from_voter_justif_stream.clone(),
beefy_best_block_stream: beefy_rpc_links.from_voter_best_beefy_stream.clone(), beefy_best_block_stream: beefy_rpc_links.from_voter_best_beefy_stream.clone(),
subscription_executor, subscription_executor,
}, },
+4 -4
View File
@@ -61,11 +61,11 @@ pub struct GrandpaDeps<B> {
pub finality_provider: Arc<FinalityProofProvider<B, Block>>, pub finality_provider: Arc<FinalityProofProvider<B, Block>>,
} }
use beefy_gadget::notification::{BeefyBestBlockStream, BeefySignedCommitmentStream}; use beefy_gadget::notification::{BeefyBestBlockStream, BeefyVersionedFinalityProofStream};
/// Dependencies for BEEFY /// Dependencies for BEEFY
pub struct BeefyDeps { pub struct BeefyDeps {
/// Receives notifications about signed commitment events from BEEFY. /// Receives notifications about finality proof events from BEEFY.
pub beefy_commitment_stream: BeefySignedCommitmentStream<Block>, pub beefy_finality_proof_stream: BeefyVersionedFinalityProofStream<Block>,
/// Receives notifications about best block events from BEEFY. /// Receives notifications about best block events from BEEFY.
pub beefy_best_block_stream: BeefyBestBlockStream<Block>, pub beefy_best_block_stream: BeefyBestBlockStream<Block>,
/// Executor to drive the subscription manager in the BEEFY RPC handler. /// Executor to drive the subscription manager in the BEEFY RPC handler.
@@ -167,7 +167,7 @@ where
io.merge( io.merge(
Beefy::<Block>::new( Beefy::<Block>::new(
beefy.beefy_commitment_stream, beefy.beefy_finality_proof_stream,
beefy.beefy_best_block_stream, beefy.beefy_best_block_stream,
beefy.subscription_executor, beefy.subscription_executor,
)? )?