From a975b60a0af7e68ca12b51779c277281a64afd05 Mon Sep 17 00:00:00 2001 From: David Hill Date: Mon, 21 Oct 2013 13:00:13 -0400 Subject: [PATCH] add getconnectioncount skeleton to rpc --- rpcserver.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rpcserver.go b/rpcserver.go index bea7f8a4..e0cbbdd6 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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()