1
0
Fork 0
forked from forks/go-ethereum
go-ethereum-modded-tocallarg/ethdb
Marius van der Wijden 0f06e35115
core/rawdb: allow for truncation in the freezer (#31362)
Here we add the notion of prunable tables for the `TruncateTail` operation
in the freezer. TruncateTail for the chain freezer now only truncates the body and
receipts tables, leaving headers and hashes as-is.

This change also requires changing the validation/repair at startup to allow for
tables with different tail. For the header and hash tables, we now require them to start
at number zero.

---------

Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2025-03-17 16:01:37 +01:00
..
dbtest ethdb: add DeleteRange feature (#30668) 2024-10-25 17:33:46 +02:00
leveldb ethdb: no need to check the metric nilness (#31353) 2025-03-11 22:30:02 +01:00
memorydb ethdb/memorydb: faster DeleteRange (#31038) 2025-01-17 16:54:19 +01:00
pebble ethdb: no need to check the metric nilness (#31353) 2025-03-11 22:30:02 +01:00
remotedb ethdb: add DeleteRange feature (#30668) 2024-10-25 17:33:46 +02:00
batch.go core, ethdb, tests, trie: implement NewBatchWithSize API for batcher (#24392) 2022-02-15 15:15:13 +02:00
database.go core/rawdb: allow for truncation in the freezer (#31362) 2025-03-17 16:01:37 +01:00
iterator.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00