config: changed language from Peers to Bootstrap
Juan Batiz-Benet committed
Sep 24, 2014 at 05:31 UTC
303ebd894d9030542301c11794864150056ec72c
3 files changed
+3
-3
cmd/ipfs/init.go
+1
-1
@@ -106,7 +106,7 @@ func initCmd(c *commander.Command, inp []string) error {
106
cfg.Identity.PeerID = id.Pretty()
107
108
// Use these hardcoded bootstrap peers for now.
109
- cfg.Peers = []*config.BootstrapPeer{
109
+ cfg.Bootstrap = []*config.BootstrapPeer{
110
&config.BootstrapPeer{
111
// mars.i.ipfs.io
112
PeerID: "QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
config/config.go
+1
-1
@@ -39,7 +39,7 @@ type Config struct {
39
Identity Identity // local node's peer identity
40
Datastore Datastore // local node's storage
41
Addresses Addresses // local node's addresses
42
- Peers []*BootstrapPeer // local nodes's bootstrap peers
42
+ Bootstrap []*BootstrapPeer // local nodes's bootstrap peers
43
}
44
45
// DefaultPathRoot is the default parth for the IPFS node's root dir.
core/core.go
+1
-1
@@ -186,7 +186,7 @@ func initIdentity(cfg *config.Config) (*peer.Peer, error) {
186
}
187
188
func initConnections(ctx context.Context, cfg *config.Config, pstore peer.Peerstore, route *dht.IpfsDHT) {
189
- for _, p := range cfg.Peers {
189
+ for _, p := range cfg.Bootstrap {
190
if p.PeerID == "" {
191
u.PErr("error: peer does not include PeerID. %v\n", p)
192
}