rpc: add Magic to Version

This commit is contained in:
Anna Shaleva 2020-10-14 16:52:49 +03:00
parent c50f3db6ad
commit 474d2dfb65
3 changed files with 10 additions and 5 deletions

View file

@ -466,6 +466,7 @@ func (s *Server) getVersion(_ request.Params) (interface{}, *response.Error) {
return nil, response.NewInternalServerError("Cannot fetch tcp port", err)
}
return result.Version{
Magic: s.network,
TCPPort: port,
Nonce: s.coreServer.ID(),
UserAgent: s.coreServer.UserAgent,