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 {
cfg.Identity.PeerID = id.Pretty()
// Use these hardcoded bootstrap peers for now.
cfg.Peers = []*config.BootstrapPeer{
cfg.Bootstrap = []*config.BootstrapPeer{
&config.BootstrapPeer{
// mars.i.ipfs.io
PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
......
......@@ -39,7 +39,7 @@ type Config struct {
Identity Identity // local node's peer identity
Datastore Datastore // local node's storage
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.
......
......@@ -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) {
for _, p := range cfg.Peers {
for _, p := range cfg.Bootstrap {
if p.PeerID == "" {
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