diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-03-06 10:25:57 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-03-10 01:03:35 +0800 |
commit | 27c42ea93488790d1c509c3ee6f187a1edab7e0a (patch) | |
tree | 7321c7a4af96cb30716caaac6d1467f9941819e4 /cmd/utils/cmd.go | |
parent | 676a0de58d3d7c508b0eeeff192d2095a46f7382 (diff) | |
download | go-tangerine-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.gz go-tangerine-27c42ea93488790d1c509c3ee6f187a1edab7e0a.tar.zst go-tangerine-27c42ea93488790d1c509c3ee6f187a1edab7e0a.zip |
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.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index a77c6ad4d..3823ec75a 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -134,6 +134,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 { |