add deprecated dns enr tree

This commit is contained in:
Sasha 2024-05-29 00:09:34 +02:00
parent 00c77c6e12
commit ab6f7ef7a7
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,8 @@ import type { NodeCapabilityCount } from "@waku/interfaces";
export const enrTree = {
TEST: "enrtree://AOGYWMBYOUIMOENHXCHILPKY3ZRFEULMFI4DOM442QSZ73TT2A7VI@test.waku.nodes.status.im",
SANDBOX:
"enrtree://AIRVQ5DDA4FFWLRBCHJWUWOO6X6S4ZTZ5B667LQ6AJU6PEYDLRD5O@sandbox.waku.nodes.status.im"
"enrtree://AIRVQ5DDA4FFWLRBCHJWUWOO6X6S4ZTZ5B667LQ6AJU6PEYDLRD5O@sandbox.waku.nodes.status.im",
DEPRECATED: "enrtree://ANEDLO25QVUGJOUTQFRYKWX6P4Z4GKVESBMHML7DZ6YK4LGS5FC5O@prod.wakuv2.nodes.status.im",
};
export const DEFAULT_BOOTSTRAP_TAG_NAME = "bootstrap";

View File

@ -20,10 +20,8 @@ const DEFAULT_NODE_REQUIREMENTS = {
export function defaultPeerDiscoveries(
pubsubTopics: PubsubTopic[]
): ((components: Libp2pComponents) => PeerDiscovery)[] {
// TODO: add a check to see if it is indeed TWN or if it is a custom network
// https://github.com/waku-org/js-waku/issues/2014
const dnsFleet = pubsubTopics.includes(DefaultPubsubTopic)
? enrTree["TEST"]
? enrTree["DEPRECATED"]
: enrTree["SANDBOX"];
const discoveries = [