11package main
22
33import (
4+ "github.com/ethereum/eth-go/ethlog"
45 "github.com/ethereum/go-ethereum/ethereal/ui"
56 "github.com/ethereum/go-ethereum/utils"
6- "github.com/ethereum/eth-go/ethlog"
77 "github.com/go-qml/qml"
8- "runtime"
98 "os"
9+ "runtime"
1010)
1111
1212func main () {
@@ -32,11 +32,11 @@ func main() {
3232 ethereum := utils .NewEthereum (UseUPnP , OutboundPort , MaxPeer )
3333
3434 // create, import, export keys
35- utils .KeyTasks (GenAddr , ImportKey , ExportKey , NonInteractive )
35+ utils .KeyTasks (GenAddr , ImportKey , ExportKey , NonInteractive )
3636
37- if ShowGenesis {
38- utils .ShowGenesis (ethereum )
39- }
37+ if ShowGenesis {
38+ utils .ShowGenesis (ethereum )
39+ }
4040
4141 if StartRpc {
4242 utils .StartRpc (ethereum , RpcPort )
@@ -45,17 +45,17 @@ func main() {
4545 gui := ethui .New (ethereum , LogLevel )
4646
4747 utils .RegisterInterrupt (func (os.Signal ) {
48- gui .Stop ()
49- })
48+ gui .Stop ()
49+ })
5050 utils .StartEthereum (ethereum , UseSeed )
51- // gui blocks the main thread
52- gui .Start (AssetPath )
53- // we need to run the interrupt callbacks in case gui is closed
54- // this skips if we got here by actual interrupt stopping the GUI
51+ // gui blocks the main thread
52+ gui .Start (AssetPath )
53+ // we need to run the interrupt callbacks in case gui is closed
54+ // this skips if we got here by actual interrupt stopping the GUI
5555 if ! interrupted {
5656 utils .RunInterruptCallbacks (os .Interrupt )
57- }
58- // this blocks the thread
59- ethereum .WaitForShutdown ()
60- ethlog .Flush ()
57+ }
58+ // this blocks the thread
59+ ethereum .WaitForShutdown ()
60+ ethlog .Flush ()
6161}
0 commit comments