From 4178c36dc3ebbf7cf3c673c7e25e544ef63dd24f Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 3 May 2014 14:07:08 -0500 Subject: [PATCH] Populate connections field in getinfo RPC. The JSON object returned from the getinfo RPC contains a connection count field that was not being populated. --- rpcserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpcserver.go b/rpcserver.go index fe53432c..2c1ebbb6 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -1122,6 +1122,7 @@ func handleGetInfo(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) { ProtocolVersion: int(btcwire.ProtocolVersion), Blocks: int(height), TimeOffset: 0, + Connections: s.server.ConnectedCount(), Proxy: cfg.Proxy, Difficulty: getDifficultyRatio(blkHeader.Bits), TestNet: cfg.TestNet3,