Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit a3984a7

Browse files
committed
update references to BlockAnnounceValidator
1 parent 84b69e9 commit a3984a7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

client/network/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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
2323
use sp_consensus::block_validation::{

client/network/src/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ impl RelayChainInterface for DummyRelayChainInterface {
244244
}
245245

246246
fn 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
}

client/service/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
use cumulus_client_cli::CollatorOptions;
2222
use cumulus_client_consensus_common::ParachainConsensus;
23-
use cumulus_client_network::BlockAnnounceValidator;
23+
use cumulus_client_network::RequireSecondedInBlockAnnounce;
2424
use cumulus_client_pov_recovery::{PoVRecovery, RecoveryDelayRange, RecoveryHandle};
2525
use cumulus_primitives_core::{CollectCollationInfo, ParaId};
2626
use 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 {

0 commit comments

Comments
 (0)