Connect the Tendermint machine to a GossipEngine

This commit is contained in:
Luke Parker
2022-10-30 05:16:25 -04:00
parent 1af6117155
commit 6c54289fb4
5 changed files with 78 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ use sp_api::{TransactionFor, ProvideRuntimeApi};
use sc_executor::{NativeVersion, NativeExecutionDispatch, NativeElseWasmExecutor};
use sc_transaction_pool::FullPool;
use sc_network::NetworkService;
use sc_service::{TaskManager, TFullClient};
use substrate_prometheus_endpoint::Registry;
@@ -26,7 +27,7 @@ mod verifier;
mod import_queue;
use import_queue::TendermintImportQueue;
mod gossip;
pub(crate) mod gossip;
mod select_chain;
pub use select_chain::TendermintSelectChain;
@@ -85,6 +86,7 @@ impl<A: Announce<Block>> TendermintValidator for TendermintValidatorFirm<A> {
DisableProofRecording,
>;
type Network = Arc<NetworkService<Block, <Block as BlockTrait>::Hash>>;
type Announce = A;
}