mirror of https://github.com/status-im/go-waku.git
fix: dnsdisc address (#318)
This commit is contained in:
parent
1542271b56
commit
0ab7641a2f
|
@ -30,7 +30,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
discoveryURL := "enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im"
|
discoveryURL := "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im"
|
||||||
nodes, err := dnsdisc.RetrieveNodes(context.Background(), discoveryURL)
|
nodes, err := dnsdisc.RetrieveNodes(context.Background(), discoveryURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
|
@ -24,7 +24,7 @@ A node will attempt connection to all discovered nodes.
|
||||||
|
|
||||||
This can be used, for example, to connect to one of the existing fleets.
|
This can be used, for example, to connect to one of the existing fleets.
|
||||||
Current URLs for the published fleet lists:
|
Current URLs for the published fleet lists:
|
||||||
- production fleet: `enrtree://ANTL4SLG2COUILKAPE7EF2BYNL2SHSHVCHLRD5J7ZJLN5R3PRJD2Y@prod.waku.nodes.status.im`
|
- production fleet: `enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.waku.nodes.status.im`
|
||||||
- test fleet: `enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im`
|
- test fleet: `enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im`
|
||||||
|
|
||||||
See the [separate tutorial](../../tutorial/dns-disc.md) for a complete guide to DNS discovery.
|
See the [separate tutorial](../../tutorial/dns-disc.md) for a complete guide to DNS discovery.
|
|
@ -150,7 +150,7 @@ Discovery v5 will attempt to extract the ENRs of the discovered nodes as bootstr
|
||||||
```sh
|
```sh
|
||||||
./build/waku \
|
./build/waku \
|
||||||
--dns-discovery=true \
|
--dns-discovery=true \
|
||||||
--dns-discovery-url=enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im \
|
--dns-discovery-url=enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im \
|
||||||
--discv5-discovery=true
|
--discv5-discovery=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ appears below.
|
||||||
--db-path=/mnt/go-waku/data/db1/ \
|
--db-path=/mnt/go-waku/data/db1/ \
|
||||||
--store-capacity=150000 \
|
--store-capacity=150000 \
|
||||||
--dns-discovery=true \
|
--dns-discovery=true \
|
||||||
--dns-discovery-url=enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im \
|
--dns-discovery-url=enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im \
|
||||||
--discv5-discovery=true
|
--discv5-discovery=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -474,10 +474,10 @@ func (c *Chat) discoverNodes(connectionWg *sync.WaitGroup) {
|
||||||
var dnsDiscoveryUrl string
|
var dnsDiscoveryUrl string
|
||||||
if options.Fleet != fleetNone {
|
if options.Fleet != fleetNone {
|
||||||
if options.Fleet == fleetTest {
|
if options.Fleet == fleetTest {
|
||||||
dnsDiscoveryUrl = "enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im"
|
dnsDiscoveryUrl = "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im"
|
||||||
} else {
|
} else {
|
||||||
// Connect to prod by default
|
// Connect to prod by default
|
||||||
dnsDiscoveryUrl = "enrtree://ANTL4SLG2COUILKAPE7EF2BYNL2SHSHVCHLRD5J7ZJLN5R3PRJD2Y@prod.waku.nodes.status.im"
|
dnsDiscoveryUrl = "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.waku.nodes.status.im"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
// TestRetrieveNodes uses a live connection, so it could be
|
// TestRetrieveNodes uses a live connection, so it could be
|
||||||
// flaky, it should though pay for itself and should be fairly stable
|
// flaky, it should though pay for itself and should be fairly stable
|
||||||
func TestRetrieveNodes(t *testing.T) {
|
func TestRetrieveNodes(t *testing.T) {
|
||||||
url := "enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im"
|
url := "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im"
|
||||||
|
|
||||||
nodes, err := RetrieveNodes(context.Background(), url)
|
nodes, err := RetrieveNodes(context.Background(), url)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Reference in New Issue