@libp2p/bootstrap
Advanced tools
Comparing version 5.0.0 to 5.0.1
{ | ||
"name": "@libp2p/bootstrap", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT", |
@@ -38,19 +38,19 @@ # @libp2p/bootstrap <!-- omit in toc --> | ||
import { createLibp2p } from 'libp2p' | ||
import { Bootstrap } from '@libp2p/bootstrap' | ||
import { TCP } from 'libp2p/tcp' | ||
import { Noise } from '@libp2p/noise' | ||
import { Mplex } from '@libp2p/mplex' | ||
import { bootstrap } from '@libp2p/bootstrap' | ||
import { tcp } from 'libp2p/tcp' | ||
import { noise } from '@libp2p/noise' | ||
import { mplex } from '@libp2p/mplex' | ||
let options = { | ||
transports: [ | ||
new TCP() | ||
tcp() | ||
], | ||
streamMuxers: [ | ||
new Mplex() | ||
mplex() | ||
], | ||
connectionEncryption: [ | ||
new Noise() | ||
noise() | ||
], | ||
peerDiscovery: [ | ||
new Bootstrap({ | ||
bootstrap({ | ||
list: [ // a list of bootstrap peer multiaddrs to connect to on node startup | ||
@@ -57,0 +57,0 @@ "/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", |
19933