aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/cmd.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-03-10 19:07:34 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-03-10 19:07:34 +0800
commit0542df941f57a75fa7b699089db1d9ae40e4ff71 (patch)
tree8e1c51b0000102abb8f61b6a1e171f8843b711e6 /cmd/utils/cmd.go
parent56524d13b5113751539fe0a86a0a88fc4c45d2af (diff)
parent27c42ea93488790d1c509c3ee6f187a1edab7e0a (diff)
downloadgo-tangerine-0542df941f57a75fa7b699089db1d9ae40e4ff71.tar.gz
go-tangerine-0542df941f57a75fa7b699089db1d9ae40e4ff71.tar.zst
go-tangerine-0542df941f57a75fa7b699089db1d9ae40e4ff71.zip
Merge pull request #449 from Gustav-Simonsson/add_blockchain_tests2
Add empty total difficulty to test blocks and clean up stopping the node
Diffstat (limited to 'cmd/utils/cmd.go')
-rw-r--r--cmd/utils/cmd.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index 4188802ac..a7e609af7 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -133,6 +133,15 @@ func StartEthereum(ethereum *eth.Ethereum) {
})
}
+func StartEthereumForTest(ethereum *eth.Ethereum) {
+ clilogger.Infoln("Starting ", ethereum.Name())
+ ethereum.StartForTest()
+ RegisterInterrupt(func(sig os.Signal) {
+ ethereum.Stop()
+ logger.Flush()
+ })
+}
+
func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, SecretFile string, ExportDir string, NonInteractive bool) {
var err error
switch {