added net API

This commit is contained in:
Bas van Kervel
2015-06-08 14:50:11 +02:00
committed by Bas van Kervel
parent 4b9b633dfe
commit d2a87f6f72
9 changed files with 141 additions and 11 deletions

View File

@ -13,7 +13,7 @@ const (
)
var (
// mapping between methods and handlers
// mapping between methods and handlers
MinerMapping = map[string]minerhandler{
"miner_hashrate": (*miner).Hashrate,
"miner_makeDAG": (*miner).MakeDAG,
@ -140,4 +140,4 @@ func (self *miner) MakeDAG(req *shared.Request) (interface{}, error) {
return true, nil
}
return false, err
}
}