@cryptotaxi247 / kubo / commits / 8ffd27a6e

fix(init) inline bootstrap peers

Brian Tiger Chow committed Nov 9, 2014 at 02:03 UTC 8ffd27a6e172c27f621150890ec1e84db99cc1a6
1 file changed +7 -10
cmd/ipfs2/init.go
+7 -10
@@ -63,15 +63,6 @@ var initCmd = &cmds.Command{
63 },
64 }
65
66 -// Use these hardcoded bootstrap peers for now.
67 -var defaultPeers = []*config.BootstrapPeer{
68 - &config.BootstrapPeer{
69 - // mars.i.ipfs.io
70 - PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
71 - Address: "/ip4/104.131.131.82/tcp/4001",
72 - },
73 -}
74 -
66 // TODO add default welcome hash: eaa68bedae247ed1e5bd0eb4385a3c0959b976e4
67 func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) error {
68
@@ -108,7 +99,13 @@ func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) e
99 API: "/ip4/127.0.0.1/tcp/5001",
100 },
101
111 - Bootstrap: defaultPeers,
102 + Bootstrap: []*config.BootstrapPeer{
103 + &config.BootstrapPeer{ // Use these hardcoded bootstrap peers for now.
104 + // mars.i.ipfs.io
105 + PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
106 + Address: "/ip4/104.131.131.82/tcp/4001",
107 + },
108 + },
109
110 Datastore: ds,
111