Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-unixfs
Commits
303ebd89
Commit
303ebd89
authored
Sep 24, 2014
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config: changed language from Peers to Bootstrap
parent
193aebc4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
cmd/ipfs/init.go
cmd/ipfs/init.go
+1
-1
config/config.go
config/config.go
+1
-1
core/core.go
core/core.go
+1
-1
No files found.
cmd/ipfs/init.go
View file @
303ebd89
...
@@ -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"
,
...
...
config/config.go
View file @
303ebd89
...
@@ -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.
...
...
core/core.go
View file @
303ebd89
...
@@ -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
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment