mirror of https://github.com/waku-org/js-waku.git
refactor: move predefined nodes out of dns discovery
This commit is contained in:
parent
5f1ac595b6
commit
11e60aadd5
|
@ -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",
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue