mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +00:00
rpc/server: fix getversion reply for staterootinheader extension
Proper network should have it set to `true` and client should know about it.
This commit is contained in:
parent
546faf5e70
commit
6989769f2c
1 changed files with 5 additions and 4 deletions
|
@ -509,10 +509,11 @@ 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,
|
||||
Magic: s.network,
|
||||
TCPPort: port,
|
||||
Nonce: s.coreServer.ID(),
|
||||
UserAgent: s.coreServer.UserAgent,
|
||||
StateRootInHeader: s.chain.GetConfig().StateRootInHeader,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue