core: extend Blockchainer interface with StateHeight()
Allow to query current verified state root height.
This commit is contained in:
parent
f665843887
commit
f8051da0bd
5 changed files with 14 additions and 7 deletions
|
@ -745,10 +745,9 @@ func (s *Server) verifyProof(ps request.Params) (interface{}, *response.Error) {
|
|||
}
|
||||
|
||||
func (s *Server) getStateHeight(_ request.Params) (interface{}, *response.Error) {
|
||||
height := s.chain.BlockHeight()
|
||||
return &result.StateHeight{
|
||||
BlockHeight: height,
|
||||
StateHeight: height,
|
||||
BlockHeight: s.chain.BlockHeight(),
|
||||
StateHeight: s.chain.StateHeight(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue