mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 05:43:07 +00:00
use enrTree from the lib
This commit is contained in:
parent
d964f22892
commit
a9cc45316e
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user