diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go index 7efee31e78..8d46b279e4 100644 --- a/cmd/ethereum/main.go +++ b/cmd/ethereum/main.go @@ -124,13 +124,6 @@ func main() { return } - // better reworked as cases - if StartJsConsole { - InitJsConsole(ethereum) - } else if len(InputFile) > 0 { - ExecJsFile(ethereum, InputFile) - } - if StartRpc { utils.StartRpc(ethereum, RpcPort) } @@ -141,6 +134,11 @@ func main() { utils.StartEthereum(ethereum, UseSeed) + if StartJsConsole { + InitJsConsole(ethereum) + } else if len(InputFile) > 0 { + ExecJsFile(ethereum, InputFile) + } // this blocks the thread ethereum.WaitForShutdown() }