ethdb: update comment

This commit is contained in:
Felix Lange 2025-03-14 13:00:56 +01:00
parent d9e3ce8aed
commit 2258c4b095

View file

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