Re-enable peer bootstrapping to see if it makes a difference
This commit is contained in:
parent
bf5d792ac0
commit
6e682b1211
26
ipfs.go
26
ipfs.go
@ -261,22 +261,22 @@ func startIPFSNode(ipfs icore.CoreAPI, node *core.IpfsNode) { //} icore.CoreAPI
|
|||||||
|
|
||||||
fmt.Println("IPFS node is running")
|
fmt.Println("IPFS node is running")
|
||||||
|
|
||||||
// bootstrapNodes := []string{
|
bootstrapNodes := []string{
|
||||||
// // IPFS Bootstrapper nodes.
|
// IPFS Bootstrapper nodes.
|
||||||
// "/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
|
"/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN",
|
||||||
// "/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
|
"/dnsaddr/bootstrap.libp2p.io/p2p/QmQCU2EcMqAqQPR2i9bChDtGNJchTbq5TbXJJ16u19uLTa",
|
||||||
// "/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
|
"/dnsaddr/bootstrap.libp2p.io/p2p/QmbLHAnMoJPWSCR5Zhtx6BHJX9KiKNN6tpvbUcqanj75Nb",
|
||||||
// "/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
|
"/dnsaddr/bootstrap.libp2p.io/p2p/QmcZf59bWwK5XFi76CZX8cbJ4BhTzzA3gU1ZjYZcYW3dwt",
|
||||||
|
|
||||||
// // IPFS Cluster Pinning nodes
|
// IPFS Cluster Pinning nodes
|
||||||
// "/ip4/138.201.67.219/tcp/4001/p2p/QmUd6zHcbkbcs7SMxwLs48qZVX3vpcM8errYS7xEczwRMA",
|
"/ip4/138.201.67.219/tcp/4001/p2p/QmUd6zHcbkbcs7SMxwLs48qZVX3vpcM8errYS7xEczwRMA",
|
||||||
|
|
||||||
// // You can add more nodes here, for example, another IPFS node you might have running locally, mine was:
|
// You can add more nodes here, for example, another IPFS node you might have running locally, mine was:
|
||||||
// // "/ip4/127.0.0.1/tcp/4010/p2p/QmZp2fhDLxjYue2RiUvLwT9MWdnbDxam32qYFnGmxZDh5L",
|
// "/ip4/127.0.0.1/tcp/4010/p2p/QmZp2fhDLxjYue2RiUvLwT9MWdnbDxam32qYFnGmxZDh5L",
|
||||||
// // "/ip4/127.0.0.1/udp/4010/quic/p2p/QmZp2fhDLxjYue2RiUvLwT9MWdnbDxam32qYFnGmxZDh5L",
|
// "/ip4/127.0.0.1/udp/4010/quic/p2p/QmZp2fhDLxjYue2RiUvLwT9MWdnbDxam32qYFnGmxZDh5L",
|
||||||
// }
|
}
|
||||||
|
|
||||||
// connectToPeers(ctx, ipfs, bootstrapNodes)
|
go connectToPeers(ctx, ipfs, bootstrapNodes)
|
||||||
|
|
||||||
addr := "/ip4/127.0.0.1/tcp/5001"
|
addr := "/ip4/127.0.0.1/tcp/5001"
|
||||||
var opts = []corehttp.ServeOption{
|
var opts = []corehttp.ServeOption{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user