erigon-pulse/cmd/restapi/apis/common.go
Alex Sharov b490192e67
Use KV Abstraction in RestAPI (#400)
* Introduce NoValuesCursor. From() method is useless because can be replaced by Seek().`
* implement NoValueCursor interface
* use abstract db in restapi
* cleanup .md
2020-03-24 09:12:55 +07:00

14 lines
169 B
Go

package apis
import (
"errors"
"github.com/ledgerwatch/turbo-geth/ethdb"
)
var ErrEntityNotFound = errors.New("entity not found")
type Env struct {
DB ethdb.KV
}