Point to relayer
This commit is contained in:
parent
4a197ec5ef
commit
bd934c603a
|
@ -283,6 +283,14 @@ func New(nodeKey string, cfg *Config, logger *zap.Logger, appDB *sql.DB) (*Waku,
|
|||
waku.logger.Error("failed to parse PEERID")
|
||||
return
|
||||
}
|
||||
addr := "/ip4/188.166.2.147/tcp/30305/p2p/16Uiu2HAmVkwBTMQhjpE5ZT9wYnNkwHP5mS4FZ8ztUxDHgXoVf1gi"
|
||||
|
||||
|
||||
err = waku.DialPeer(addr)
|
||||
if err != nil {
|
||||
waku.logger.Error("failed to add PEERID",zap.String("peer",addr), zap.Error(err))
|
||||
return
|
||||
}
|
||||
waku.logger.Info("PEER", zap.String("id", id), zap.Any("multiaddr", waku.node.Host().Peerstore().PeerInfo(peerID)))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue