diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 00:55:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 00:55:23 +0800 |
commit | 313fe3861b3c338b3b6304adac46c86af7e2d52e (patch) | |
tree | e19ace3d9fd0b8f8fe67e5f0fb934cfd407b5664 /javascript | |
parent | 22b132e28f74cabef38a55874da8e3db93786144 (diff) | |
download | go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.gz go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.bz2 go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.lz go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.xz go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.tar.zst go-tangerine-313fe3861b3c338b3b6304adac46c86af7e2d52e.zip |
fixed pow stuff
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/javascript_runtime.go | 10 |
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 { |