diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-16 04:15:14 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-16 04:15:14 +0800 |
commit | 0a03484188dc23707b343bb512ec341afc744a2e (patch) | |
tree | fec35421e4d74c1fe09fc7e7a6e031b01a8345ce /ethereum/ethereum.go | |
parent | cbce882f5e35300016055cde81eeccb3ae052671 (diff) | |
download | go-tangerine-0a03484188dc23707b343bb512ec341afc744a2e.tar go-tangerine-0a03484188dc23707b343bb512ec341afc744a2e.tar.gz go-tangerine-0a03484188dc23707b343bb512ec341afc744a2e.tar.bz2 go-tangerine-0a03484188dc23707b343bb512ec341afc744a2e.tar.lz go-tangerine-0a03484188dc23707b343bb512ec341afc744a2e.tar.xz go-tangerine-0a03484188dc23707b343bb512ec341afc744a2e.tar.zst go-tangerine-0a03484188dc23707b343bb512ec341afc744a2e.zip |
Implemented JavaScript console
Diffstat (limited to 'ethereum/ethereum.go')
-rw-r--r-- | ethereum/ethereum.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ethereum/ethereum.go b/ethereum/ethereum.go index 8b42c2a2c..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,9 +150,7 @@ save these words so you can restore your account later: %s console := NewConsole(ethereum) go console.Start() - } - - if StartExp { + } else if StartJsConsole { c := NewJSConsole(ethereum) go c.Start() |