diff --git a/ethdb/database.go b/ethdb/database.go index c14eea198c..8c6f68ddbb 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -130,12 +130,10 @@ type AncientWriter interface { // will be removed all together. TruncateTail(n uint64) (uint64, error) - // TruncateTailBlocks discards the first n ancient data from the ancient store. The already - // deleted items are ignored. After the truncation, the earliest item can be accessed - // is item_n(start from 0). The deleted items may not be removed from the ancient store - // immediately, but only when the accumulated deleted data reach the threshold then - // will be removed all together. Only deletes bodies and receipts. - TruncateTailBlocks(n uint64) (uint64, error) + // TruncateTailBlocks discards all blocks and receipts below the given number from the + // ancient store. Headers are left as-is. This is intended to be used with the chain + // freezer specifically. + TruncateTailBlocks(tailBlock uint64) (uint64, error) // Sync flushes all in-memory ancient store data to disk. Sync() error