mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-06 19:55:10 +00:00
stateroot: use RoleStateValidator for verification
This commit is contained in:
parent
bf20db09e0
commit
ac227a80fe
12 changed files with 405 additions and 11 deletions
|
@ -869,7 +869,7 @@ func (s *Server) verifyProof(ps request.Params) (interface{}, *response.Error) {
|
|||
|
||||
func (s *Server) getStateHeight(_ request.Params) (interface{}, *response.Error) {
|
||||
var height = s.chain.BlockHeight()
|
||||
var stateHeight uint32
|
||||
var stateHeight = s.chain.GetStateModule().CurrentValidatedHeight()
|
||||
if s.chain.GetConfig().StateRootInHeader {
|
||||
stateHeight = height - 1
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue