mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
everyone's a server on testnet
This commit is contained in:
parent
5b26cff487
commit
f50dda6848
@ -159,6 +159,7 @@ func NewBlossomSubStreamer(
|
||||
h,
|
||||
false,
|
||||
bootstrappers,
|
||||
p2pConfig.Network,
|
||||
)
|
||||
|
||||
peerID := h.ID()
|
||||
@ -310,6 +311,7 @@ func NewBlossomSub(
|
||||
h,
|
||||
isBootstrapPeer,
|
||||
bootstrappers,
|
||||
p2pConfig.Network,
|
||||
)
|
||||
h = routedhost.Wrap(h, kademliaDHT)
|
||||
|
||||
@ -713,10 +715,11 @@ func initDHT(
|
||||
h host.Host,
|
||||
isBootstrapPeer bool,
|
||||
bootstrappers []peer.AddrInfo,
|
||||
network uint8,
|
||||
) *dht.IpfsDHT {
|
||||
logger.Info("establishing dht")
|
||||
var mode dht.ModeOpt
|
||||
if isBootstrapPeer {
|
||||
if isBootstrapPeer || network != 0 {
|
||||
mode = dht.ModeServer
|
||||
} else {
|
||||
mode = dht.ModeClient
|
||||
|
||||
Loading…
Reference in New Issue
Block a user