Skip to content

Commit aab9c08

Browse files
feat(dns-discovery): set default for NodeRequirements (#1466)
* add: test for multi enrtree + static multiaddr * wrap up test * rm: only * move test to optional file * dns-disc: setup default for node requirements & move to constants * chore: restructure DNS Discovery for better readability * fix: build * fix: type import * fix: test expect * rm: only * update packagelock * use new libp2p interface * fix linting errors
1 parent bb6211d commit aab9c08

11 files changed

+555
-194
lines changed

package-lock.json

+340
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { NodeCapabilityCount } from "@waku/interfaces";
2+
3+
export const enrTree = {
4+
TEST: "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@test.waku.nodes.status.im",
5+
PROD: "enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.waku.nodes.status.im"
6+
};
7+
8+
export const DEFAULT_BOOTSTRAP_TAG_NAME = "bootstrap";
9+
export const DEFAULT_BOOTSTRAP_TAG_VALUE = 50;
10+
export const DEFAULT_BOOTSTRAP_TAG_TTL = 100_000_000;
11+
12+
export const DEFAULT_NODE_REQUIREMENTS: Partial<NodeCapabilityCount> = {
13+
store: 2,
14+
filter: 1,
15+
lightPush: 1
16+
};

0 commit comments

Comments
 (0)