mirror of https://github.com/waku-org/js-waku.git
add deprecated dns enr tree
This commit is contained in:
parent
00c77c6e12
commit
ab6f7ef7a7
|
@ -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";
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue