diff options
author | zelig <viktor.tron@gmail.com> | 2014-06-26 23:26:14 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-06-26 23:26:14 +0800 |
commit | 21d86ca486a88c936a1fe71f78d76c78df36a7eb (patch) | |
tree | 03cf271f99fba4e537c4fe8e91fb8ce53b3e2072 /ethereum/main.go | |
parent | c0a05fcf8984f04f198c5c0f8be4f73090f99403 (diff) | |
download | go-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.tar.gz go-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.tar.zst go-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.zip |
gui stop
- introduce gui.Stop()
- remember state with open
- stopping ethereum stack is not gui concern, moved to main
- stopping mining, gui and ethereum handled via interrupt callbacks
- ^C triggers exactly the same behaviour as quit via menu
Diffstat (limited to 'ethereum/main.go')
-rw-r--r-- | ethereum/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereum/main.go b/ethereum/main.go index 800486e56..93b2b47d3 100644 --- a/ethereum/main.go +++ b/ethereum/main.go @@ -46,4 +46,8 @@ func main() { } utils.StartEthereum(ethereum, UseSeed) + + // this blocks the thread + ethereum.WaitForShutdown() + ethlog.Flush() } |