(req *AddReq, resp *AddResp)
| 110 | } |
| 111 | |
| 112 | func (s *CountService) Add(req *AddReq, resp *AddResp) error { |
| 113 | resp.SetNodeID(req.NodeID) |
| 114 | resp.Count = atomic.AddInt32(&s.Count, req.Delta) |
| 115 | return nil |
| 116 | } |
| 117 | |
| 118 | // createLocalNodes uses the cpu miner to mine node IDs for the local public key. |
| 119 | func createLocalNodes(diff int, num int) (nodes []*proto.Node, err error) { |
no test coverage detected