Refactored mining into utils and exposed it to ethereal. Partly fixes #43

This commit is contained in:
Maran
2014-05-14 12:41:30 +02:00
parent 0d9c948b9b
commit e8147cf7c6
3 changed files with 36 additions and 24 deletions

View File

@ -99,6 +99,10 @@ func main() {
os.Exit(0)
}
if StartMining {
utils.DoMining(ethereum)
}
if StartRpc {
ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum), RpcPort)
if err != nil {