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:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user