add getconnectioncount skeleton to rpc

This commit is contained in:
David Hill 2013-10-21 13:00:13 -04:00
parent 3130659cdf
commit a975b60a0a

View file

@ -362,6 +362,14 @@ func jsonRead(body []byte, s *rpcServer) (reply btcjson.Reply, err error) {
Id: &message.Id,
}
case "getconnectioncount":
var count int
reply = btcjson.Reply{
Result: count,
Id: &message.Id,
}
case "getdifficulty":
var sha *btcwire.ShaHash
sha, _, err = s.server.db.NewestSha()