cmd/geth: report version inside of startNode

This commit is contained in:
Matthew Di Ferrante 2016-05-31 01:06:25 +01:00
parent 5424e9fd75
commit aa05cd5662

View file

@ -299,7 +299,6 @@ func makeDefaultExtra() []byte {
// It creates a default node based on the command line arguments and runs it in // It creates a default node based on the command line arguments and runs it in
// blocking mode, waiting for it to be shut down. // blocking mode, waiting for it to be shut down.
func geth(ctx *cli.Context) { func geth(ctx *cli.Context) {
glog.V(logger.Info).Infof("instance: Geth/%s/%s/%s\n", verString, runtime.Version(), runtime.GOOS)
node := utils.MakeSystemNode(clientIdentifier, verString, relConfig, makeDefaultExtra(), ctx) node := utils.MakeSystemNode(clientIdentifier, verString, relConfig, makeDefaultExtra(), ctx)
startNode(ctx, node) startNode(ctx, node)
node.Wait() node.Wait()
@ -435,6 +434,8 @@ func execScripts(ctx *cli.Context) {
// it unlocks any requested accounts, and starts the RPC/IPC interfaces and the // it unlocks any requested accounts, and starts the RPC/IPC interfaces and the
// miner. // miner.
func startNode(ctx *cli.Context, stack *node.Node) { func startNode(ctx *cli.Context, stack *node.Node) {
// Report geth version
glog.V(logger.Info).Infof("instance: Geth/%s/%s/%s\n", verString, runtime.Version(), runtime.GOOS)
// Start up the node itself // Start up the node itself
utils.StartNode(stack) utils.StartNode(stack)