Update bootstrap usage with peers (#31)
This commit is contained in:
parent
02d5ab77d0
commit
b8e0400a02
|
@ -39,10 +39,12 @@ If you want to bootstrap to your own nodes, you can pass an array of multiaddres
|
|||
import {Waku} from "js-waku";
|
||||
|
||||
const waku = await Waku.create({
|
||||
bootstrap: [
|
||||
bootstrap: {
|
||||
peers: [
|
||||
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm",
|
||||
"/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
|
||||
],
|
||||
]
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
@ -53,10 +53,12 @@ If you want to bootstrap to your own nodes, you can pass an array of multiaddres
|
|||
import {Waku} from "js-waku";
|
||||
|
||||
const wakuNode = await Waku.create({
|
||||
bootstrap: [
|
||||
bootstrap: {
|
||||
peers: [
|
||||
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm",
|
||||
"/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
|
||||
],
|
||||
]
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
|
|
|
@ -53,10 +53,12 @@ If you want to bootstrap to your own nodes, you can pass an array of multiaddres
|
|||
import {Waku} from "js-waku";
|
||||
|
||||
const waku = await Waku.create({
|
||||
bootstrap: [
|
||||
bootstrap: {
|
||||
peers: [
|
||||
"/dns4/node-01.ac-cn-hongkong-c.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAkvWiyFsgRhuJEb9JfjYxEkoHLgnUQmr1N5mKWnYjxYRVm",
|
||||
"/dns4/node-01.do-ams3.wakuv2.test.statusim.net/tcp/443/wss/p2p/16Uiu2HAmPLe7Mzm8TsYUubgCAW1aJoeFScxrLj8ppHFivPo97bUZ",
|
||||
],
|
||||
]
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue