good morning!!!!

Skip to content
Snippets Groups Projects
Commit 87dace1f authored by Bas van Kervel's avatar Bas van Kervel
Browse files

added miner API

parent aa258dcc
No related branches found
No related tags found
No related merge requests found
...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment