From 313fe3861b3c338b3b6304adac46c86af7e2d52e Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 3 Mar 2015 17:55:23 +0100 Subject: fixed pow stuff --- javascript/javascript_runtime.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'javascript/javascript_runtime.go') 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 { -- cgit v1.2.3