Skip to content

Commit

Permalink
Merge pull request #1862 from nspcc-dev/fix-stateroot-in-header-getve…
Browse files Browse the repository at this point in the history
…rsion-extension

rpc/server: fix getversion reply for staterootinheader extension
  • Loading branch information
roman-khimov authored Mar 26, 2021
2 parents 546faf5 + 6989769 commit 44c87a4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/rpc/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 44c87a4

Please sign in to comment.