Merge pull request #1862 from nspcc-dev/fix-stateroot-in-header-getversion-extension

rpc/server: fix getversion reply for staterootinheader extension
This commit is contained in:
Roman Khimov 2021-03-26 18:47:59 +03:00 committed by GitHub
commit 44c87a460c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}