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:
Roman Khimov 2021-03-26 18:38:46 +03:00
parent 546faf5e70
commit 6989769f2c

View file

@ -513,6 +513,7 @@ func (s *Server) getVersion(_ request.Params) (interface{}, *response.Error) {
TCPPort: port,
Nonce: s.coreServer.ID(),
UserAgent: s.coreServer.UserAgent,
StateRootInHeader: s.chain.GetConfig().StateRootInHeader,
}, nil
}