mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
cmd/geth: report version inside of startNode
This commit is contained in:
parent
5424e9fd75
commit
aa05cd5662
1 changed files with 2 additions and 1 deletions
|
|
@ -299,7 +299,6 @@ func makeDefaultExtra() []byte {
|
|||
// It creates a default node based on the command line arguments and runs it in
|
||||
// blocking mode, waiting for it to be shut down.
|
||||
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)
|
||||
startNode(ctx, node)
|
||||
node.Wait()
|
||||
|
|
@ -435,6 +434,8 @@ func execScripts(ctx *cli.Context) {
|
|||
// it unlocks any requested accounts, and starts the RPC/IPC interfaces and the
|
||||
// miner.
|
||||
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
|
||||
utils.StartNode(stack)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue