core/rawdb: add file lock for freezer

This commit is contained in:
rjl493456442
2019-03-14 14:59:47 +08:00
committed by Péter Szilágyi
parent b69bdc2a4f
commit b6cac42e9f
3 changed files with 43 additions and 5 deletions

View File

@ -80,6 +80,13 @@ type AncientReader interface {
Ancienter
}
// AncientStore contains all the methods required to allow handling different
// ancient data stores backing immutable chain data store.
type AncientStore interface {
Ancienter
io.Closer
}
// Database contains all the methods required by the high level database to not
// only access the key-value data store but also the chain freezer.
type Database interface {