From 67bc9cc89dda5e03c7dba1beb42a7216d5dea94c Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Mon, 3 Nov 2014 22:44:31 -0800 Subject: [PATCH] feat(init) display peer id in init command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit use case: Just configured and installed a node. benefits: 1) reduces friction when setting up a new node 2) reveals useful details about the workings of the system. It's the user's first encounter with her node's identity. The tour can build on the user's knowledge. ``` ipfs (maybebtc-november) λ. ipfs init -f initializing ipfs node at /Users/btc/.go-ipfs generating key pair peer identity: QmcRbn41Vc2CvbpLYfN36mAWusErKWvAAHbq92LPra2gFT ``` --- cmd/ipfs/init.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/ipfs/init.go b/cmd/ipfs/init.go index 18fbaa134..6c1293d88 100644 --- a/cmd/ipfs/init.go +++ b/cmd/ipfs/init.go @@ -125,6 +125,7 @@ func initCmd(c *commander.Command, inp []string) error { return err } cfg.Identity.PeerID = id.Pretty() + u.POut("peer identity: %s\n", id.Pretty()) // Use these hardcoded bootstrap peers for now. cfg.Bootstrap = []*config.BootstrapPeer{