Removed some methods from the JS REPL

This commit is contained in:
obscuren
2015-02-28 19:15:57 +01:00
parent cc5c8a444d
commit 6ea7aae29c
7 changed files with 25 additions and 54 deletions

View File

@ -135,6 +135,12 @@ func Init() {
flag.Parse()
// When the javascript console is started log to a file instead
// of stdout
if StartJsConsole {
LogFile = path.Join(Datadir, "ethereum.log")
}
var err error
if NAT, err = nat.Parse(*natstr); err != nil {
log.Fatalf("-nat: %v", err)

View File

@ -137,6 +137,9 @@ func main() {
utils.StartEthereum(ethereum)
latestBlock := ethereum.ChainManager().CurrentBlock()
fmt.Printf("Welcome to the FRONTIER\n")
if StartJsConsole {
InitJsConsole(ethereum)
} else if len(InputFile) > 0 {

View File

@ -60,6 +60,7 @@ func (self *JSRepl) Start() {
if !self.running {
self.running = true
repllogger.Infoln("init JS Console")
reader := bufio.NewReader(self.history)
for {
line, err := reader.ReadString('\n')