aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/main.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-15 07:29:27 +0800
committerobscuren <geffobscura@gmail.com>2014-11-15 07:29:27 +0800
commit33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75 (patch)
treeaa38804559f4e25fbc5bed48383ab408e5484f64 /cmd/mist/main.go
parent56aa24002de357c24a9644a49d5702c8d4663909 (diff)
downloadgo-tangerine-33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75.tar
go-tangerine-33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75.tar.gz
go-tangerine-33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75.tar.bz2
go-tangerine-33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75.tar.lz
go-tangerine-33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75.tar.xz
go-tangerine-33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75.tar.zst
go-tangerine-33afb10b0da43d55b1d6e1fe6b1b97c6ff8d8f75.zip
clean up
Diffstat (limited to 'cmd/mist/main.go')
-rw-r--r--cmd/mist/main.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmd/mist/main.go b/cmd/mist/main.go
index c106a7582..bc05d4f3d 100644
--- a/cmd/mist/main.go
+++ b/cmd/mist/main.go
@@ -18,8 +18,10 @@
package main
import (
+ "fmt"
"os"
"runtime"
+ "time"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/cmd/utils"
@@ -38,6 +40,7 @@ func run() error {
// precedence: code-internal flag default < config file < environment variables < command line
Init() // parsing command line
+ tstart := time.Now()
config := utils.InitConfig(VmType, ConfigFile, Datadir, "ETH")
utils.InitDataDir(Datadir)
@@ -51,14 +54,11 @@ func run() error {
os.Exit(1)
}
-
keyManager := utils.NewKeyManager(KeyStore, Datadir, db)
// create, import, export keys
utils.KeyTasks(keyManager, KeyRing, GenAddr, SecretFile, ExportDir, NonInteractive)
-
clientIdentity := utils.NewClientIdentity(ClientIdentifier, Version, Identifier)
-
ethereum = utils.NewEthereum(db, clientIdentity, keyManager, UseUPnP, OutboundPort, MaxPeer)
if ShowGenesis {
@@ -75,7 +75,10 @@ func run() error {
utils.RegisterInterrupt(func(os.Signal) {
gui.Stop()
})
- utils.StartEthereum(ethereum, UseSeed)
+ go utils.StartEthereum(ethereum, UseSeed)
+
+ fmt.Println("ETH stack took", time.Since(tstart))
+
// gui blocks the main thread
gui.Start(AssetPath)