mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 03:01:42 +00:00
Exposed the LevelDB iterator in the DB struct.
This commit is contained in:
8
db.go
8
db.go
@ -12,6 +12,8 @@ type DB interface {
|
||||
NewBatch() Batch
|
||||
|
||||
// For debugging
|
||||
Iterator() Iterator
|
||||
Next(Iterator) (key []byte, value []byte)
|
||||
Print()
|
||||
}
|
||||
|
||||
@ -21,6 +23,12 @@ type Batch interface {
|
||||
Write()
|
||||
}
|
||||
|
||||
type Iterator interface {
|
||||
Next() bool
|
||||
Key() []byte
|
||||
Value() []byte
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user