Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples/bootstrapping railing #302

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[railing] added comment about bootstrapping nodes
Florian Lenz committed Mar 21, 2018
commit 7e0d9bb6869f030c13d1339f17f953d9c1a97613
4 changes: 3 additions & 1 deletion examples/bootstrapping-railing/railing.go
Original file line number Diff line number Diff line change
@@ -9,6 +9,9 @@ import (
ipfsaddr "github.com/ipfs/go-ipfs-addr"
)

//The bootstrapping nodes are just long running nodes with a static IP address.
//That means you can easily have your own bootstrapping nodes. Everything you need is
//a server with a static IP address.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General go style is to have a space between // and comment.

Copy link
Contributor Author

@florianlenz florianlenz Mar 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kubuxu I added it now. Do you know why go fmt didn't fix it?

var bootstrapPeers = []string{
"/ip4/104.131.131.82/tcp/4001/ipfs/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ",
"/ip4/104.236.76.40/tcp/4001/ipfs/QmSoLV4Bbm51jM9C4gDYZQ9Cy3U6aXMJDAbzgu2fzaDs64",
@@ -21,7 +24,6 @@ var bootstrapPeers = []string{
"/ip4/104.236.151.122/tcp/4001/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx",
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would also be great to add a comment here that any long running node with stable external address can be used as bootstrap node.



//This example show's you how you can connect to a list of bootstrapping nodes.
func main() {