This repository was archived by the owner on Nov 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1717//! Parachain specific networking
1818//!
1919//! Provides a custom block announcement implementation for parachains
20- //! that use the relay chain provided consensus. See [`BlockAnnounceValidator `]
20+ //! that use the relay chain provided consensus. See [`RequireSecondedInBlockAnnounce `]
2121//! and [`WaitToAnnounce`] for more information about this implementation.
2222
2323use sp_consensus:: block_validation:: {
Original file line number Diff line number Diff line change @@ -244,10 +244,10 @@ impl RelayChainInterface for DummyRelayChainInterface {
244244}
245245
246246fn make_validator_and_api (
247- ) -> ( BlockAnnounceValidator < Block , Arc < DummyRelayChainInterface > > , Arc < DummyRelayChainInterface > ) {
247+ ) -> ( RequireSecondedInBlockAnnounce < Block , Arc < DummyRelayChainInterface > > , Arc < DummyRelayChainInterface > ) {
248248 let relay_chain_interface = Arc :: new ( DummyRelayChainInterface :: new ( ) ) ;
249249 (
250- BlockAnnounceValidator :: new ( relay_chain_interface. clone ( ) , ParaId :: from ( 56 ) ) ,
250+ RequireSecondedInBlockAnnounce :: new ( relay_chain_interface. clone ( ) , ParaId :: from ( 56 ) ) ,
251251 relay_chain_interface,
252252 )
253253}
Original file line number Diff line number Diff line change 2020
2121use cumulus_client_cli:: CollatorOptions ;
2222use cumulus_client_consensus_common:: ParachainConsensus ;
23- use cumulus_client_network:: BlockAnnounceValidator ;
23+ use cumulus_client_network:: RequireSecondedInBlockAnnounce ;
2424use cumulus_client_pov_recovery:: { PoVRecovery , RecoveryDelayRange , RecoveryHandle } ;
2525use cumulus_primitives_core:: { CollectCollationInfo , ParaId } ;
2626use cumulus_relay_chain_inprocess_interface:: build_inprocess_relay_chain;
@@ -361,7 +361,7 @@ where
361361 _ => None ,
362362 } ;
363363
364- let block_announce_validator = BlockAnnounceValidator :: new ( relay_chain_interface, para_id) ;
364+ let block_announce_validator = RequireSecondedInBlockAnnounce :: new ( relay_chain_interface, para_id) ;
365365 let block_announce_validator_builder = move |_| Box :: new ( block_announce_validator) as Box < _ > ;
366366
367367 sc_service:: build_network ( sc_service:: BuildNetworkParams {
You can’t perform that action at this time.
0 commit comments