remove dev check

This commit is contained in:
Cassandra Heart 2024-10-27 01:54:33 -05:00
parent a6514f8d9d
commit 2d70562911
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -517,19 +517,12 @@ func initDHT(
var kademliaDHT *dht.IpfsDHT
var err error
if isBootstrapPeer {
if p2pConfig.Network == 0 {
panic(
"this release is for normal peers only, if you are running a " +
"bootstrap node, please use v2.0-bootstrap",
)
} else {
kademliaDHT, err = dht.New(
ctx,
h,
dht.Mode(dht.ModeServer),
dht.BootstrapPeers(bootstrappers...),
)
}
kademliaDHT, err = dht.New(
ctx,
h,
dht.Mode(dht.ModeServer),
dht.BootstrapPeers(bootstrappers...),
)
} else {
kademliaDHT, err = dht.New(
ctx,