rpc: fix getstateheight result compatibility
C#: "result" : { "localrootindex" : 11623, "validatedrootindex" : 11623 } Go: "result" : { "blockHeight" : 11627, "stateHeight" : 11627 }
This commit is contained in:
parent
a8a6c8c13d
commit
a188d20fd1
3 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue