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:
parent
a20fd1ab2c
commit
fd025a7368
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue