lbcd/claimtrie/block/repo.go
Roy Lee 236cb44eee [lbry] claimtrie: import current snapshot
Sync to tip

Co-authored-by: Brannon King <countprimes@gmail.com>
2021-10-19 01:16:15 -07:00

14 lines
300 B
Go

package block
import (
"github.com/lbryio/lbcd/chaincfg/chainhash"
)
// Repo defines APIs for Block to access persistence layer.
type Repo interface {
Load() (int32, error)
Set(height int32, hash *chainhash.Hash) error
Get(height int32) (*chainhash.Hash, error)
Close() error
Flush() error
}