chore: nim-waku interop test (#207)

This commit is contained in:
Richard Ramos 2022-03-10 18:14:50 -04:00 committed by GitHub
parent 61cda61c3d
commit e7098efcff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -318,7 +318,8 @@ func evaluateNode(node *enode.Node) bool {
return false
}
if !isWakuNode(node) || !hasTCPPort(node) {
// TODO: consider node filtering based on ENR; we do not filter based on ENR in the first waku discv5 beta stage
if /*!isWakuNode(node) ||*/ !hasTCPPort(node) {
return false
}

View File

@ -433,6 +433,10 @@ func (w *WakuNode) mountDiscV5() error {
discv5.WithAutoUpdate(w.opts.discV5autoUpdate),
}
if w.opts.advertiseAddr != nil {
discV5Options = append(discV5Options, discv5.WithAdvertiseAddr(*w.opts.advertiseAddr))
}
addr := w.ListenAddresses()[0]
ipStr, err := addr.ValueForProtocol(ma.P_IP4)