Provide useragent in getpeerinfo now we know it.

This commit is contained in:
Owain G. Ainsworth 2013-10-29 23:00:23 +00:00
parent 4f25d45e77
commit 231efa35f5

View file

@ -270,7 +270,7 @@ func (s *server) handleQuery(querymsg interface{}, peers *list.List, bannedPeers
BytesRecv: 0, // TODO(oga) we need this from wire. BytesRecv: 0, // TODO(oga) we need this from wire.
ConnTime: peer.timeConnected, ConnTime: peer.timeConnected,
Version: peer.protocolVersion, Version: peer.protocolVersion,
SubVer: "unknown", SubVer: peer.userAgent,
Inbound: peer.inbound, Inbound: peer.inbound,
StartingHeight: peer.lastBlock, StartingHeight: peer.lastBlock,
BanScore: 0, BanScore: 0,