Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
klim0v committed Mar 26, 2021
1 parent 6a5c1ab commit 03b06a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coreV2/appdb/appdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func (appDB *AppDB) GetLastHeight() uint64 {
panic(err)
}

val = binary.BigEndian.Uint64(result)
if len(result) != 0 {
val = binary.BigEndian.Uint64(result)
atomic.StoreUint64(&appDB.lastHeight, val)
}

Expand Down Expand Up @@ -118,8 +118,8 @@ func (appDB *AppDB) GetStartHeight() uint64 {
panic(err)
}

val = binary.BigEndian.Uint64(result)
if len(result) != 0 {
val = binary.BigEndian.Uint64(result)
atomic.StoreUint64(&appDB.startHeight, val)
}

Expand Down

0 comments on commit 03b06a1

Please sign in to comment.