Merge pull request #449 from Gustav-Simonsson/add_blockchain_tests2

Add empty total difficulty to test blocks and clean up stopping the node
This commit is contained in:
Jeffrey Wilcke
2015-03-10 12:07:34 +01:00
3 changed files with 31 additions and 3 deletions

View File

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