rpc: fix getstateheight result compatibility

C#:
   "result" : {
      "localrootindex" : 11623,
      "validatedrootindex" : 11623
   }

Go:
   "result" : {
      "blockHeight" : 11627,
      "stateHeight" : 11627
   }
This commit is contained in:
Roman Khimov 2021-07-22 19:55:41 +03:00
parent a8a6c8c13d
commit a188d20fd1
3 changed files with 6 additions and 6 deletions

View file

@ -969,8 +969,8 @@ func (s *Server) getStateHeight(_ request.Params) (interface{}, *response.Error)
stateHeight = height - 1
}
return &result.StateHeight{
BlockHeight: height,
StateHeight: stateHeight,
Local: height,
Validated: stateHeight,
}, nil
}