diff options
Diffstat (limited to 'ethereal/ethereum.go')
-rw-r--r-- | ethereal/ethereum.go | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ethereal/ethereum.go b/ethereal/ethereum.go index 30187d956..7ace16760 100644 --- a/ethereal/ethereum.go +++ b/ethereal/ethereum.go @@ -8,9 +8,11 @@ import ( "github.com/ethereum/go-ethereum/ethereal/ui" "github.com/ethereum/go-ethereum/utils" "github.com/go-qml/qml" + "github.com/rakyll/globalconf" "log" "os" "os/signal" + "path" "runtime" ) @@ -39,7 +41,16 @@ func main() { runtime.GOMAXPROCS(runtime.NumCPU()) ethchain.InitFees() - ethutil.ReadConfig(DataDir, ethutil.LogFile|ethutil.LogStd, Identifier) + + g, err := globalconf.NewWithOptions(&globalconf.Options{ + Filename: path.Join(ethutil.ApplicationFolder(Datadir), "conf.ini"), + }) + if err != nil { + fmt.Println(err) + } else { + g.ParseAll() + } + ethutil.ReadConfig(Datadir, ethutil.LogFile|ethutil.LogStd, g, Identifier) // Instantiated a eth stack ethereum, err := eth.New(eth.CapDefault, UseUPnP) @@ -108,9 +119,11 @@ save these words so you can restore your account later: %s os.Exit(0) } - if StartMining { - utils.DoMining(ethereum) - } + /* + if StartMining { + utils.DoMining(ethereum) + } + */ if StartRpc { utils.DoRpc(ethereum, RpcPort) |