Point to relayer

This commit is contained in:
Andrea Maria Piana 2022-11-23 12:34:40 +00:00
parent 4a197ec5ef
commit bd934c603a
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 8 additions and 0 deletions

View File

@ -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)))
}