aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 00:55:29 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 00:55:29 +0800
commit53b5a45856c5d4c307dc55b4ae1b46efd9471142 (patch)
tree56eb1f936610cc461742d2bb08431e304870e85a /javascript
parentb0aaa77f0213cb525a873c3bea92e8a06cff423f (diff)
parent313fe3861b3c338b3b6304adac46c86af7e2d52e (diff)
downloadgo-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.gz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.bz2
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.lz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.xz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.zst
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.zip
Merge branch 'xcthulhu-publictests' into poc-9
Diffstat (limited to 'javascript')
-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 {