Skip to content

Commit

Permalink
fix: p2p-forge require websocket transport
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Sep 20, 2024
1 parent 7c9842e commit bef0a21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/node/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config, userResourceOverrides rcmgr.Part
logger.Fatal("Failed to enable `Swarm.RelayClient`, it requires `Swarm.Transports.Network.Relay` to be true.")
}
}
if enableForgeClient && !cfg.Swarm.Transports.Network.Websocket.WithDefault(true) {
logger.Fatal("Failed to enable `Swarm.ForgeClient`, it requires `Swarm.Transports.Network.Websocket` to be true.")
}

// Gather all the options
opts := fx.Options(
Expand Down

0 comments on commit bef0a21

Please sign in to comment.