aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-26 23:26:14 +0800
committerzelig <viktor.tron@gmail.com>2014-06-26 23:26:14 +0800
commit21d86ca486a88c936a1fe71f78d76c78df36a7eb (patch)
tree03cf271f99fba4e537c4fe8e91fb8ce53b3e2072 /ethereum
parentc0a05fcf8984f04f198c5c0f8be4f73090f99403 (diff)
downloadgo-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.tar
go-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.tar.gz
go-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.tar.bz2
go-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.tar.lz
go-tangerine-21d86ca486a88c936a1fe71f78d76c78df36a7eb.tar.xz
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')
-rw-r--r--ethereum/main.go4
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()
}