Skip to content

Commit

Permalink
Use the network backend from the parachain config
Browse files Browse the repository at this point in the history
For consistency. For example `start_node()` uses
`FullNetworkConfiguration::<_, _, Net>::new(&parachain_config.network)`
  • Loading branch information
serban300 committed Jun 11, 2024
1 parent 6f9babf commit 71b551d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus/polkadot-parachain/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ pub fn run() -> Result<()> {
info!("Parachain Account: {}", parachain_account);
info!("Is collating: {}", if config.role.is_authority() { "yes" } else { "no" });

match polkadot_config.network.network_backend {
match config.network.network_backend {
sc_network::config::NetworkBackendType::Libp2p =>
start_node::<sc_network::NetworkWorker<_, _>>(
config,
Expand Down

0 comments on commit 71b551d

Please sign in to comment.