Refactored mining into utils and exposed it to ethereal. Partly fixes #43
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user