go-ethereum/core/rawdb
Arran Schlosberg c74b645360
feat: rawdb.InspectDatabaseOption (#111)
## Why this should be merged

Allows for `ava-labs/coreth` equivalent modifications of
`rawdb.InspectDatabase()` through external logic injection.

## How this works

Variadic options to:

1. Record a database statistic;
2. Mark a database statistic as metadata;
3. Filter statistics for printing.

## How this was tested

Testable example acting as a unit test.

---------

Signed-off-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com>
Co-authored-by: Quentin McGaw <quentin.mcgaw@avalabs.org>
2025-02-07 17:32:51 +00:00
..
testdata core/rawdb: avoid unnecessary receipt processing for log filtering (#23147) 2021-09-28 12:54:49 +02:00
accessors_chain.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_chain_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_indexes.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_indexes_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_metadata.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_snapshot.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_state.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_sync.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
accessors_trie.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
ancient_scheme.go core, cmd, trie: fix the condition of pathdb initialization (#28718) 2023-12-21 20:28:32 +01:00
ancient_utils.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
chain_freezer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
chain_iterator.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
chain_iterator_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
database.go feat: rawdb.InspectDatabaseOption (#111) 2025-02-07 17:32:51 +00:00
database.libevm.go feat: rawdb.InspectDatabaseOption (#111) 2025-02-07 17:32:51 +00:00
database.libevm_test.go feat: rawdb.InspectDatabaseOption (#111) 2025-02-07 17:32:51 +00:00
database_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
freezer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_batch.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_meta.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_meta_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
freezer_resettable.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_resettable_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_table.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_table_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
freezer_utils.go core/rawdb: fsync the index file after each freezer write (#28483) 2023-11-10 12:56:39 +02:00
freezer_utils_test.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
key_length_iterator.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
key_length_iterator_test.go core/rawdb: add specified key length iterator (#24535) 2022-03-15 10:28:26 +02:00
schema.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
table.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
table_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00