From 6989769f2ca7887e1310498b9f58127fd3b13b9a Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 26 Mar 2021 18:38:46 +0300 Subject: [PATCH] rpc/server: fix getversion reply for staterootinheader extension Proper network should have it set to `true` and client should know about it. --- pkg/rpc/server/server.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/rpc/server/server.go b/pkg/rpc/server/server.go index f097df5c1..3479fc9b4 100644 --- a/pkg/rpc/server/server.go +++ b/pkg/rpc/server/server.go @@ -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 }