aboutsummaryrefslogtreecommitdiffstats
path: root/javascript/javascript_runtime.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 00:55:23 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 00:55:23 +0800
commit313fe3861b3c338b3b6304adac46c86af7e2d52e (patch)
treee19ace3d9fd0b8f8fe67e5f0fb934cfd407b5664 /javascript/javascript_runtime.go
parent22b132e28f74cabef38a55874da8e3db93786144 (diff)
downloaddexon-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar
dexon-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.gz
dexon-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.bz2
dexon-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.lz
dexon-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.xz
dexon-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.zst
dexon-313fe3861b3c338b3b6304adac46c86af7e2d52e.zip
fixed pow stuff
Diffstat (limited to 'javascript/javascript_runtime.go')
-rw-r--r--javascript/javascript_runtime.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/javascript/javascript_runtime.go b/javascript/javascript_runtime.go
index beaca45b9..893ad5d33 100644
--- a/javascript/javascript_runtime.go
+++ b/javascript/javascript_runtime.go
@@ -7,7 +7,6 @@ import (
"path"
"path/filepath"
- "github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
@@ -157,13 +156,14 @@ func (self *JSRE) dump(call otto.FunctionCall) otto.Value {
}
func (self *JSRE) stopMining(call otto.FunctionCall) otto.Value {
- v, _ := self.Vm.ToValue(utils.StopMining(self.ethereum))
- return v
+ self.xeth.Miner().Stop()
+
+ return otto.TrueValue()
}
func (self *JSRE) startMining(call otto.FunctionCall) otto.Value {
- v, _ := self.Vm.ToValue(utils.StartMining(self.ethereum))
- return v
+ self.xeth.Miner().Start()
+ return otto.TrueValue()
}
func (self *JSRE) connect(call otto.FunctionCall) otto.Value {