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.
This commit is contained in:
fryorcraken 2025-03-21 02:32:27 +11:00 committed by GitHub
parent e0b8bd8c9c
commit d27db21ba5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -10,7 +10,7 @@ import { type Libp2pComponents, PubsubTopic } from "@waku/interfaces";
export function defaultPeerDiscoveries(
pubsubTopics: PubsubTopic[]
): ((components: Libp2pComponents) => PeerDiscovery)[] {
const dnsEnrTrees = [enrTree["SANDBOX"], enrTree["TEST"]];
const dnsEnrTrees = [enrTree["SANDBOX"]];
const discoveries = [
wakuDnsDiscovery(dnsEnrTrees),

View File

@ -18,10 +18,7 @@ describe("Use static and several ENR trees for bootstrap", function () {
waku = await createLightNode({
libp2p: {
peerDiscovery: [
wakuDnsDiscovery(
[enrTree["SANDBOX"], enrTree["TEST"]],
NODE_REQUIREMENTS
)
wakuDnsDiscovery([enrTree["SANDBOX"]], NODE_REQUIREMENTS)
]
}
});