Closed chainhead closed 2 years ago
If you've not got any nodes to bootstrap to, you'd just not use the bootstrap module.
So instead of:
const node = await createLibp2p({
addresses: {
listen: [...]
},
transports: [...],
streamMuxers: [...],
connectionEncryption: [...],
peerDiscovery: [
new Bootstrap({
list: [...]
})
]
})
do:
```js
const node = await createLibp2p({
addresses: {
listen: [...]
},
transports: [...],
streamMuxers: [...],
connectionEncryption: [...]
})
If I want to launch first ever node of my network - meaning, no other nodes exist in network - how should my configuration to launch the bootstrap node look like?