Skip to content

Commit

Permalink
feat: circuit v1 migration prompt when Swarm.EnableRelayHop is set (#…
Browse files Browse the repository at this point in the history
…8559)

* exit when Swarm.EnableRelayHop is set
* chore: go-ipfs-config v0.18.0

Co-authored-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
marten-seemann and lidel committed Nov 23, 2021
1 parent 41a4d88 commit 8c902b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/node/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ func LibP2P(bcfg *BuildCfg, cfg *config.Config) fx.Option {
logger.Error("'Swarm.EnableAutoRelay' has been overridden by 'Swarm.AutoRelay.Enabled'")
}
}
//nolint
if cfg.Swarm.EnableRelayHop {
logger.Fatal("The `Swarm.EnableRelayHop` config field is ignored.\n" +
"Use `Swarm.RelayService` to configure the circuit v2 relay.\n" +
"If you want to continue running a circuit v1 relay, please use the standalone relay daemon: https://github.com/libp2p/go-libp2p-relay-daemon (with RelayV1.Enabled: true)")
}

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

0 comments on commit 8c902b1

Please sign in to comment.