mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
ethdb: update comment
This commit is contained in:
parent
d9e3ce8aed
commit
2258c4b095
1 changed files with 4 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue