Closed BenDerPan closed 5 years ago
There is no difference between bootstrap nodes and normal nodes. So the only thing you need to do is adding the peerid of your PC node to the variable "bootstrapPeers".
var bootstrapPeers = []string{
"/ip4/127.0.0.1/tcp/4001/ipfs/Qmeuja1ukLr9KG1A94T2n9y2RYb8KdVpgyUvYgQDV4UQLr",
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
"/ip4/104.236.179.241/tcp/4001/ipfs/QmSoLPppuBtQSGwKDZT2M73ULpjvfd3aZ6ha4oFGL1KrGM",
"/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
"/ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu",
"/ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
}
@zhizouxiao you mean I need to run ipfs on my PC ? but if there is an minimal example of how to build a bootstrap node is much better.
You don't need to run ipfs. I mean if you want to run the example chat-with-rendezvous
, then add your peerid to bootstrapPeers
which is in the front of chat-with-rendezvous.go.
@zhizouxiao great, it works. thx. I will close this issue now.
chat-with-rendezvous
example defined a default bootstrap node list , how can I make my PC as the bootstrap node?