fix: select correct runtime in Libp2p branch for testnet and stagenet (#157)

Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com>
This commit is contained in:
Ahmad Kaouk 2025-09-11 12:31:40 +02:00 committed by GitHub
parent 9c961a2bf7
commit 7c5e3459dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -335,16 +335,16 @@ pub fn run() -> sc_cli::Result<()> {
}
ref spec if spec.is_testnet() => {
service::new_full::<
datahaven_mainnet_runtime::Runtime,
datahaven_mainnet_runtime::RuntimeApi,
datahaven_testnet_runtime::Runtime,
datahaven_testnet_runtime::RuntimeApi,
sc_network::NetworkWorker<_, _>,
>(config, cli.eth, provider_options)
.await
}
_ => {
service::new_full::<
datahaven_mainnet_runtime::Runtime,
datahaven_mainnet_runtime::RuntimeApi,
datahaven_stagenet_runtime::Runtime,
datahaven_stagenet_runtime::RuntimeApi,
sc_network::NetworkWorker<_, _>,
>(config, cli.eth, provider_options)
.await