mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
db: fix memdb iterator
This commit is contained in:
@ -82,7 +82,7 @@ func newMemDBIterator() *memDBIterator {
|
||||
}
|
||||
|
||||
func (it *memDBIterator) Next() bool {
|
||||
if it.last >= len(it.keys) {
|
||||
if it.last >= len(it.keys)-1 {
|
||||
return false
|
||||
}
|
||||
it.last++
|
||||
|
Reference in New Issue
Block a user