Skip to content

Commit d27db21

Browse files
authored
fix: do not use waku test fleet as default bootstrap (#2312)
The waku test fleet is unstable and should not be used as boostrap. The issue is that DNS Discovery looks for "2" nodes and stop there. Meaning that if those "discovered" nodes are not reachable (ie, coming from test suite). js-waku does not connect.
1 parent e0b8bd8 commit d27db21

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/sdk/src/create/discovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { type Libp2pComponents, PubsubTopic } from "@waku/interfaces";
1010
export function defaultPeerDiscoveries(
1111
pubsubTopics: PubsubTopic[]
1212
): ((components: Libp2pComponents) => PeerDiscovery)[] {
13-
const dnsEnrTrees = [enrTree["SANDBOX"], enrTree["TEST"]];
13+
const dnsEnrTrees = [enrTree["SANDBOX"]];
1414

1515
const discoveries = [
1616
wakuDnsDiscovery(dnsEnrTrees),

packages/tests/tests/waku.node.optional.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ describe("Use static and several ENR trees for bootstrap", function () {
1818
waku = await createLightNode({
1919
libp2p: {
2020
peerDiscovery: [
21-
wakuDnsDiscovery(
22-
[enrTree["SANDBOX"], enrTree["TEST"]],
23-
NODE_REQUIREMENTS
24-
)
21+
wakuDnsDiscovery([enrTree["SANDBOX"]], NODE_REQUIREMENTS)
2522
]
2623
}
2724
});

0 commit comments

Comments
 (0)