aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-08 20:42:15 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:20:50 +0800
commit87dace1fa96ed4426ea963ba4f9559c05bf42e35 (patch)
tree90d4f205acade0610bbdc3a84ec01700a1a279af /rpc
parentaa258dcc5f01a05c81075be999c83446862abb42 (diff)
downloadgo-tangerine-87dace1fa96ed4426ea963ba4f9559c05bf42e35.tar
go-tangerine-87dace1fa96ed4426ea963ba4f9559c05bf42e35.tar.gz
go-tangerine-87dace1fa96ed4426ea963ba4f9559c05bf42e35.tar.bz2
go-tangerine-87dace1fa96ed4426ea963ba4f9559c05bf42e35.tar.lz
go-tangerine-87dace1fa96ed4426ea963ba4f9559c05bf42e35.tar.xz
go-tangerine-87dace1fa96ed4426ea963ba4f9559c05bf42e35.tar.zst
go-tangerine-87dace1fa96ed4426ea963ba4f9559c05bf42e35.zip
added miner API
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api/miner.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpc/api/miner.go b/rpc/api/miner.go
index 496269304..0b5e74f52 100644
--- a/rpc/api/miner.go
+++ b/rpc/api/miner.go
@@ -9,7 +9,7 @@ import (
)
const (
- MinerVersion = "1.0.0"
+ MinerApiVersion = "1.0"
)
var (
@@ -69,6 +69,10 @@ func (self *minerApi) Name() string {
return MinerApiName
}
+func (self *minerApi) ApiVersion() string {
+ return MinerApiVersion
+}
+
func (self *minerApi) StartMiner(req *shared.Request) (interface{}, error) {
args := new(StartMinerArgs)
if err := self.codec.Decode(req.Params, &args); err != nil {