Commit 303ebd89 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

config: changed language from Peers to Bootstrap

parent 193aebc4
...@@ -106,7 +106,7 @@ func initCmd(c *commander.Command, inp []string) error { ...@@ -106,7 +106,7 @@ func initCmd(c *commander.Command, inp []string) error {
cfg.Identity.PeerID = id.Pretty() cfg.Identity.PeerID = id.Pretty()
// Use these hardcoded bootstrap peers for now. // Use these hardcoded bootstrap peers for now.
cfg.Peers = []*config.BootstrapPeer{ cfg.Bootstrap = []*config.BootstrapPeer{
&config.BootstrapPeer{ &config.BootstrapPeer{
// mars.i.ipfs.io // mars.i.ipfs.io
PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ", PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
......
...@@ -39,7 +39,7 @@ type Config struct { ...@@ -39,7 +39,7 @@ type Config struct {
Identity Identity // local node's peer identity Identity Identity // local node's peer identity
Datastore Datastore // local node's storage Datastore Datastore // local node's storage
Addresses Addresses // local node's addresses Addresses Addresses // local node's addresses
Peers []*BootstrapPeer // local nodes's bootstrap peers Bootstrap []*BootstrapPeer // local nodes's bootstrap peers
} }
// DefaultPathRoot is the default parth for the IPFS node's root dir. // DefaultPathRoot is the default parth for the IPFS node's root dir.
......
...@@ -186,7 +186,7 @@ func initIdentity(cfg *config.Config) (*peer.Peer, error) { ...@@ -186,7 +186,7 @@ func initIdentity(cfg *config.Config) (*peer.Peer, error) {
} }
func initConnections(ctx context.Context, cfg *config.Config, pstore peer.Peerstore, route *dht.IpfsDHT) { func initConnections(ctx context.Context, cfg *config.Config, pstore peer.Peerstore, route *dht.IpfsDHT) {
for _, p := range cfg.Peers { for _, p := range cfg.Bootstrap {
if p.PeerID == "" { if p.PeerID == "" {
u.PErr("error: peer does not include PeerID. %v\n", p) u.PErr("error: peer does not include PeerID. %v\n", p)
} }
......
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