diff options
author | gary rong <garyrong0905@gmail.com> | 2019-05-14 22:07:44 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-05-16 15:39:34 +0800 |
commit | 37d280da411eb649ce22ab69827ac5aacd46534b (patch) | |
tree | 8d19d2071c812575a14cea54a2de9efd2dd33157 /ethdb | |
parent | 42c746d6f405deb0c49d868dcc6e0afe279e19ab (diff) | |
download | go-tangerine-37d280da411eb649ce22ab69827ac5aacd46534b.tar go-tangerine-37d280da411eb649ce22ab69827ac5aacd46534b.tar.gz go-tangerine-37d280da411eb649ce22ab69827ac5aacd46534b.tar.bz2 go-tangerine-37d280da411eb649ce22ab69827ac5aacd46534b.tar.lz go-tangerine-37d280da411eb649ce22ab69827ac5aacd46534b.tar.xz go-tangerine-37d280da411eb649ce22ab69827ac5aacd46534b.tar.zst go-tangerine-37d280da411eb649ce22ab69827ac5aacd46534b.zip |
core, cmd, vendor: fixes and database inspection tool (#15)
* core, eth: some fixes for freezer
* vendor, core/rawdb, cmd/geth: add db inspector
* core, cmd/utils: check ancient store path forceily
* cmd/geth, common, core/rawdb: a few fixes
* cmd/geth: support windows file rename and fix rename error
* core: support ancient plugin
* core, cmd: streaming file copy
* cmd, consensus, core, tests: keep genesis in leveldb
* core: write txlookup during ancient init
* core: bump database version
Diffstat (limited to 'ethdb')
-rw-r--r-- | ethdb/database.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ethdb/database.go b/ethdb/database.go index e3eff32db..1ba169bcf 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -76,8 +76,11 @@ type AncientReader interface { // Ancient retrieves an ancient binary blob from the append-only immutable files. Ancient(kind string, number uint64) ([]byte, error) - // Ancients returns the ancient store length + // Ancients returns the ancient item numbers in the ancient store. Ancients() (uint64, error) + + // AncientSize returns the ancient size of the specified category. + AncientSize(kind string) (uint64, error) } // AncientWriter contains the methods required to write to immutable ancient data. |