use enrTree from the lib

This commit is contained in:
Sasha 2023-06-24 00:15:41 +02:00
parent d964f22892
commit a9cc45316e
No known key found for this signature in database
2 changed files with 3 additions and 7 deletions

View File

@ -2,10 +2,6 @@ import { Protocols } from "@waku/interfaces";
export const CONTENT_TOPIC = "/toy-chat/2/huilong/proto";
const PUBLIC_KEY = "AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM";
const FQDN = "test.waku.nodes.status.im";
export const ENR_TREE = `enrtree://${PUBLIC_KEY}@${FQDN}`;
export const PROTOCOLS = [
Protocols.Filter,
Protocols.Store,

View File

@ -2,17 +2,17 @@ import React from "react";
import ReactDOM from "react-dom";
import { ThemeProvider } from "@livechat/ui-kit";
import { LightNodeProvider, ContentPairProvider } from "@waku/react";
import { wakuDnsDiscovery } from "@waku/dns-discovery";
import { wakuDnsDiscovery, enrTree } from "@waku/dns-discovery";
import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange";
import "./index.css";
import App from "./App";
import { ENR_TREE, CONTENT_TOPIC, PROTOCOLS } from "./config";
import { CONTENT_TOPIC, PROTOCOLS } from "./config";
const NODE_OPTIONS = {
libp2p: {
peerDiscovery: [
wakuDnsDiscovery([ENR_TREE], {
wakuDnsDiscovery([enrTree.TEST], {
store: 1,
filter: 2,
lightPush: 2,