mirror of
https://github.com/tendermint/tendermint.git
synced 2026-06-03 21:06:22 +00:00
Changed the iterations
This commit is contained in:
@@ -95,8 +95,10 @@ func (db *GoLevelDB) Iterator() Iterator {
|
||||
}
|
||||
|
||||
func (db *GoLevelDB) Next(iter Iterator) ([]byte, []byte) {
|
||||
iter.Next()
|
||||
return iter.Key(), iter.Value()
|
||||
if iter.Next() {
|
||||
return iter.Key(), iter.Value()
|
||||
}
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (db *GoLevelDB) NewBatch() Batch {
|
||||
|
||||
Reference in New Issue
Block a user