From 2258c4b0951e048647946533c2ba556a775d306f Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 14 Mar 2025 13:00:56 +0100 Subject: [PATCH] ethdb: update comment --- ethdb/database.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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