aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-14 18:41:30 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-14 18:41:30 +0800
commite8147cf7c6f508910698e6743ad347c78010ffe3 (patch)
tree3783c2631e37291d6cf9ce5d4130f472c7e01cbb /ethereal
parent0d9c948b9b2c5eef6f0069f9aa05e9868f939444 (diff)
downloadgo-tangerine-e8147cf7c6f508910698e6743ad347c78010ffe3.tar
go-tangerine-e8147cf7c6f508910698e6743ad347c78010ffe3.tar.gz
go-tangerine-e8147cf7c6f508910698e6743ad347c78010ffe3.tar.bz2
go-tangerine-e8147cf7c6f508910698e6743ad347c78010ffe3.tar.lz
go-tangerine-e8147cf7c6f508910698e6743ad347c78010ffe3.tar.xz
go-tangerine-e8147cf7c6f508910698e6743ad347c78010ffe3.tar.zst
go-tangerine-e8147cf7c6f508910698e6743ad347c78010ffe3.zip
Refactored mining into utils and exposed it to ethereal. Partly fixes #43
Diffstat (limited to 'ethereal')
-rw-r--r--ethereal/ethereum.go4
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 {