mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
Modified all db types to conform to the interface changes.
This commit is contained in:
5
db.go
5
db.go
@ -12,9 +12,9 @@ type DB interface {
|
||||
NewBatch() Batch
|
||||
|
||||
// For debugging
|
||||
Iterator() Iterator
|
||||
Next(Iterator) (key []byte, value []byte)
|
||||
Print()
|
||||
Iterator() Iterator
|
||||
Stats() map[string]string
|
||||
}
|
||||
|
||||
type Batch interface {
|
||||
@ -25,6 +25,7 @@ type Batch interface {
|
||||
|
||||
type Iterator interface {
|
||||
Next() bool
|
||||
|
||||
Key() []byte
|
||||
Value() []byte
|
||||
}
|
||||
|
Reference in New Issue
Block a user