Commit 6807b6e9 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet Committed by Brian Tiger Chow

added mars.i.ipfs.io as a bootstrap node

In the future, let's have a (signed) list of bootstrap
nodes. Ideally just a list of ipfs multiaddrs (with node.ID)
parent da20887e
......@@ -101,10 +101,20 @@ func initCmd(c *commander.Command, inp []string) error {
}
cfg.Identity.PeerID = id.Pretty()
// Use these hardcoded bootstrap peers for now.
cfg.Peers = []*config.SavedPeer{
&config.SavedPeer{
// mars.i.ipfs.io
PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
Address: "/ip4/104.131.131.82/tcp/4001",
},
}
path, err := u.TildeExpansion(config.DefaultConfigFilePath)
if err != nil {
return err
}
err = config.WriteConfigFile(path, cfg)
if err != nil {
return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment