chore(sdk): allow NoopNetwork in NodeAdapater (#16037)

Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
This commit is contained in:
Emilia Hane
2025-05-06 19:59:30 +02:00
committed by GitHub
parent fac562b673
commit 623950bb7e
9 changed files with 71 additions and 78 deletions

View File

@@ -819,13 +819,13 @@ where
> + Unpin
+ 'static,
{
type Primitives = OpNetworkPrimitives;
type Network = NetworkHandle<OpNetworkPrimitives>;
async fn build_network(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
) -> eyre::Result<NetworkHandle<Self::Primitives>> {
) -> eyre::Result<Self::Network> {
let network_config = self.network_config(ctx)?;
let network = NetworkManager::builder(network_config).await?;
let handle = ctx.start_network(network, pool);