rpc: add Magic to Version
This commit is contained in:
parent
c50f3db6ad
commit
474d2dfb65
3 changed files with 10 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue