add getconnectioncount skeleton to rpc
This commit is contained in:
parent
3130659cdf
commit
a975b60a0a
1 changed files with 8 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue