blockchain and node pkgs

This commit is contained in:
Marko Baricevic
2021-02-04 12:17:19 +01:00
parent f7c42922e1
commit e6d95c4ef8
12 changed files with 322 additions and 322 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ func (cs *State) GetState() sm.State {
// GetLastHeight returns the last height committed.
// If there were no blocks, returns 0.
func (cs *State) GetLastHeight() int64 {
func (cs *State) GetLastHeight() uint64 {
cs.mtx.RLock()
defer cs.mtx.RUnlock()
return cs.RoundState.Height - 1