Skip to content

Commit

Permalink
add deprecated dns enr tree
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed May 28, 2024
1 parent 00c77c6 commit ab6f7ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/discovery/src/dns/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",

Check failure on line 7 in packages/discovery/src/dns/constants.ts

View workflow job for this annotation

GitHub Actions / check

Replace `·"enrtree://ANEDLO25QVUGJOUTQFRYKWX6P4Z4GKVESBMHML7DZ6YK4LGS5FC5O@prod.wakuv2.nodes.status.im",` with `⏎····"enrtree://ANEDLO25QVUGJOUTQFRYKWX6P4Z4GKVESBMHML7DZ6YK4LGS5FC5O@prod.wakuv2.nodes.status.im"`
};

export const DEFAULT_BOOTSTRAP_TAG_NAME = "bootstrap";
Expand Down
4 changes: 1 addition & 3 deletions packages/sdk/src/utils/discovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit ab6f7ef

Please sign in to comment.