aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database.go
diff options
context:
space:
mode:
authorrjl493456442 <garyrong0905@gmail.com>2019-03-14 14:59:47 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-05-16 15:39:31 +0800
commitb6cac42e9ffc0b19a1e70416db85593f1cb0d30c (patch)
tree1102c442e3c400ed3388999f6be706e777343664 /ethdb/database.go
parentb69bdc2a4f8efab7cb99934652e2d9b2508c4544 (diff)
downloadgo-tangerine-b6cac42e9ffc0b19a1e70416db85593f1cb0d30c.tar
go-tangerine-b6cac42e9ffc0b19a1e70416db85593f1cb0d30c.tar.gz
go-tangerine-b6cac42e9ffc0b19a1e70416db85593f1cb0d30c.tar.bz2
go-tangerine-b6cac42e9ffc0b19a1e70416db85593f1cb0d30c.tar.lz
go-tangerine-b6cac42e9ffc0b19a1e70416db85593f1cb0d30c.tar.xz
go-tangerine-b6cac42e9ffc0b19a1e70416db85593f1cb0d30c.tar.zst
go-tangerine-b6cac42e9ffc0b19a1e70416db85593f1cb0d30c.zip
core/rawdb: add file lock for freezer
Diffstat (limited to 'ethdb/database.go')
-rw-r--r--ethdb/database.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/ethdb/database.go b/ethdb/database.go
index 764e304e3..01483f3d4 100644
--- a/ethdb/database.go
+++ b/ethdb/database.go
@@ -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 {