diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-16 04:17:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-16 04:17:23 +0800 |
commit | 2ac292dc7ada20d64188b9d35f23600e4642021b (patch) | |
tree | 8dd51cf78bbda7d0ef1a654a3bc4ec11aacfa3f8 /ethereum/ethereum.go | |
parent | 3a2bddc160ece4dcb6d2d5bcc85091d244e774c0 (diff) | |
parent | 6a78e080e645753ffe3e3bef0b09e71a2469c564 (diff) | |
download | go-tangerine-2ac292dc7ada20d64188b9d35f23600e4642021b.tar go-tangerine-2ac292dc7ada20d64188b9d35f23600e4642021b.tar.gz go-tangerine-2ac292dc7ada20d64188b9d35f23600e4642021b.tar.bz2 go-tangerine-2ac292dc7ada20d64188b9d35f23600e4642021b.tar.lz go-tangerine-2ac292dc7ada20d64188b9d35f23600e4642021b.tar.xz go-tangerine-2ac292dc7ada20d64188b9d35f23600e4642021b.tar.zst go-tangerine-2ac292dc7ada20d64188b9d35f23600e4642021b.zip |
Merge branch 'feature/otto' into develop
Diffstat (limited to 'ethereum/ethereum.go')
-rw-r--r-- | ethereum/ethereum.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go index 2abf6da42..128e11139 100644 --- a/ethereum/ethereum.go +++ b/ethereum/ethereum.go @@ -52,7 +52,12 @@ func main() { var logSys *log.Logger flags := log.LstdFlags - ethutil.ReadConfig(DataDir) + if StartJsConsole { + ethutil.ReadConfig(DataDir, ethutil.LogFile) + } else { + ethutil.ReadConfig(DataDir, ethutil.LogFile|ethutil.LogStd) + } + logger := ethutil.Config.Log if LogFile != "" { @@ -145,7 +150,12 @@ save these words so you can restore your account later: %s console := NewConsole(ethereum) go console.Start() + } else if StartJsConsole { + c := NewJSConsole(ethereum) + + go c.Start() } + if StartRpc { utils.DoRpc(ethereum, RpcPort) } |