refactor: move predefined nodes out of dns discovery

This commit is contained in:
fryorcraken.eth 2022-08-06 00:54:46 +10:00
parent 5f1ac595b6
commit 11e60aadd5
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ module.exports = [
{ {
name: "Asymmetric, symmetric encryption and signature", name: "Asymmetric, symmetric encryption and signature",
path: "bundle/index.js", path: "bundle/index.js",
import: "{ waku_message }", import: "{ WakuMessage }",
}, },
{ {
name: "DNS discovery", name: "DNS discovery",

View File

@ -6,8 +6,8 @@ import { all as filterAll } from "@libp2p/websockets/filters";
import { createLibp2p, Libp2pOptions } from "libp2p"; import { createLibp2p, Libp2pOptions } from "libp2p";
import type { Libp2p } from "libp2p"; import type { Libp2p } from "libp2p";
import { getPredefinedBootstrapNodes } from "./peer_discovery_dns/predefined";
import { PeerDiscoveryStaticPeers } from "./peer_discovery_static_list"; import { PeerDiscoveryStaticPeers } from "./peer_discovery_static_list";
import { getPredefinedBootstrapNodes } from "./predefined_bootstrap_nodes";
import { Waku, WakuOptions } from "./waku"; import { Waku, WakuOptions } from "./waku";
import { WakuFilter } from "./waku_filter"; import { WakuFilter } from "./waku_filter";
import { WakuLightPush } from "./waku_light_push"; import { WakuLightPush } from "./waku_light_push";

View File

@ -1,6 +1,6 @@
import { Multiaddr } from "@multiformats/multiaddr"; import { Multiaddr } from "@multiformats/multiaddr";
import { getPseudoRandomSubset } from "../random_subset"; import { getPseudoRandomSubset } from "./random_subset";
export const DefaultWantedNumber = 1; export const DefaultWantedNumber = 1;