mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +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