diff options
author | Maran <maran.hidskes@gmail.com> | 2014-05-14 18:41:30 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-05-14 18:41:30 +0800 |
commit | e8147cf7c6f508910698e6743ad347c78010ffe3 (patch) | |
tree | 3783c2631e37291d6cf9ce5d4130f472c7e01cbb /ethereal | |
parent | 0d9c948b9b2c5eef6f0069f9aa05e9868f939444 (diff) | |
download | dexon-e8147cf7c6f508910698e6743ad347c78010ffe3.tar.gz dexon-e8147cf7c6f508910698e6743ad347c78010ffe3.tar.zst dexon-e8147cf7c6f508910698e6743ad347c78010ffe3.zip |
Refactored mining into utils and exposed it to ethereal. Partly fixes #43
Diffstat (limited to 'ethereal')
-rw-r--r-- | ethereal/ethereum.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ethereal/ethereum.go b/ethereal/ethereum.go index 15a454bdf..32c16f64f 100644 --- a/ethereal/ethereum.go +++ b/ethereal/ethereum.go @@ -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 { |