cmd/ethereum: unlock accounts on JS REPL

This commit is contained in:
Felix Lange
2015-03-10 02:00:57 +01:00
parent 395da0e7c1
commit 9f0e3bd286
2 changed files with 112 additions and 105 deletions

View File

@ -157,11 +157,12 @@ func run(ctx *cli.Context) {
func runjs(ctx *cli.Context) {
eth := utils.GetEthereum(ClientIdentifier, Version, ctx)
startEth(ctx, eth)
repl := newJSRE(eth)
if len(ctx.Args()) == 0 {
runREPL(eth)
repl.interactive()
} else {
for _, file := range ctx.Args() {
execJsFile(eth, file)
repl.exec(file)
}
}
eth.Stop()