提交 87dace1f 编写于 作者: B Bas van Kervel 提交者: Bas van Kervel

added miner API

上级 aa258dcc
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
) )
const ( const (
MinerVersion = "1.0.0" MinerApiVersion = "1.0"
) )
var ( var (
...@@ -69,6 +69,10 @@ func (self *minerApi) Name() string { ...@@ -69,6 +69,10 @@ func (self *minerApi) Name() string {
return MinerApiName return MinerApiName
} }
func (self *minerApi) ApiVersion() string {
return MinerApiVersion
}
func (self *minerApi) StartMiner(req *shared.Request) (interface{}, error) { func (self *minerApi) StartMiner(req *shared.Request) (interface{}, error) {
args := new(StartMinerArgs) args := new(StartMinerArgs)
if err := self.codec.Decode(req.Params, &args); err != nil { if err := self.codec.Decode(req.Params, &args); err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册