Add empty total difficulty to test blocks and clean up stopping the node

This commit is contained in:
Gustav Simonsson
2015-03-06 03:25:57 +01:00
parent 676a0de58d
commit 27c42ea934
3 changed files with 31 additions and 3 deletions

View File

@ -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 {