Use btcd pver instead of wire pver in getinfo RPC.

The getinfo RPC should return the max protocol version btcd supports as
opposed to the maximum protocol version btcwire supports.  Currently they
are both the same value, so there is no issue.  However, they will not
always be the same.
This commit is contained in:
Dave Collins 2014-05-07 10:27:57 -05:00
parent a20fd1ab2c
commit fd025a7368

View file

@ -1118,7 +1118,7 @@ func handleGetInfo(s *rpcServer, cmd btcjson.Cmd) (interface{}, error) {
ret := &btcjson.InfoResult{
Version: int(1000000*appMajor + 10000*appMinor + 100*appPatch),
ProtocolVersion: int(btcwire.ProtocolVersion),
ProtocolVersion: int(maxProtocolVersion),
Blocks: int(height),
TimeOffset: 0,
Connections: s.server.ConnectedCount(),