mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-03 05:13:08 +00:00
make const
This commit is contained in:
parent
55e248dc3b
commit
77124e22e9
@ -9,13 +9,13 @@ import { wakuPeerExchangeDiscovery } from "@waku/peer-exchange";
|
||||
import "./index.css";
|
||||
import App from "./App";
|
||||
|
||||
const publicKey = "AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM";
|
||||
const fqdn = "test.waku.nodes.status.im";
|
||||
const enrTree = `enrtree://${publicKey}@${fqdn}`;
|
||||
const options = {
|
||||
const PUBLIC_KEY = "AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM";
|
||||
const FQDN = "test.waku.nodes.status.im";
|
||||
const ENR_TREE = `enrtree://${PUBLIC_KEY}@${FQDN}`;
|
||||
const NODE_OPTIONS = {
|
||||
libp2p: {
|
||||
peerDiscovery: [
|
||||
wakuDnsDiscovery(enrTree, {
|
||||
wakuDnsDiscovery(ENR_TREE, {
|
||||
store: 1,
|
||||
filter: 2,
|
||||
lightpush: 2,
|
||||
@ -25,7 +25,7 @@ const options = {
|
||||
},
|
||||
};
|
||||
|
||||
const protocols = [Protocols.Filter, Protocols.Store, Protocols.LightPush];
|
||||
const PROTOCOLS = [Protocols.Filter, Protocols.Store, Protocols.LightPush];
|
||||
|
||||
const THEMES = {
|
||||
AuthorName: {
|
||||
@ -59,7 +59,7 @@ const THEMES = {
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<ThemeProvider theme={THEMES}>
|
||||
<LightNodeProvider options={options} protocols={protocols}>
|
||||
<LightNodeProvider options={NODE_OPTIONS} protocols={PROTOCOLS}>
|
||||
<App />
|
||||
</LightNodeProvider>
|
||||
</ThemeProvider>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user