go-ethereum/core/rawdb
Sina Mahmoodi 4aab440ee2
core/rawdb: enforce readonly in freezer instantiation (#24119)
* freezer: add readonly flag to table

* freezer: enforce readonly in table repair

* freezer: enforce readonly in newFreezer

* minor fix

* minor

* core/rawdb: test that writing during readonly fails

* rm unused log

* check readonly on batch append

* minor

* Revert "check readonly on batch append"

This reverts commit 2ddb5ec4ba.

* review fixes

* minor test refactor

* attempt at fixing windows issue

* add comment re windows sync issue

* k->kind

* open readonly db for genesis check

Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-01-18 11:29:38 +02:00
..
testdata core/rawdb: avoid unnecessary receipt processing for log filtering (#23147) 2021-09-28 12:54:49 +02:00
accessors_chain.go core/rawdb: fix double-lock causing hang (#24189) 2022-01-04 19:02:37 +01:00
accessors_chain_test.go core, eth: improve delivery speed on header requests (#23105) 2021-12-07 17:50:58 +01:00
accessors_indexes.go core/rawdb: fix logs to print block number, not address (#23328) 2021-08-04 11:10:37 +03:00
accessors_indexes_test.go core/rawdb: single point of maintenance for writing and deleting tx lookup indexes (#21480) 2020-09-15 10:37:01 +02:00
accessors_metadata.go eth, les: update unclean shutdown markers regularly (#24077) 2021-12-17 15:18:51 +01:00
accessors_snapshot.go eth: request id dispatcher and direct req/reply APIs (#23576) 2021-11-26 13:26:03 +02:00
accessors_state.go trie, core, eth: use db.has over db.get where possible 2021-12-15 16:16:45 +01:00
chain_iterator.go core, core/rawdb: fix transaction indexing (#24024) 2021-12-06 11:26:03 +01:00
chain_iterator_test.go core/rawdb: fix transaction indexing/unindexing hashing error (#22457) 2021-03-16 12:15:14 +02:00
database.go all: core rework for the merge transition (#23761) 2021-11-26 13:23:02 +02:00
database_test.go eth/protocols/snap: generate storage trie from full dirty snap data (#22668) 2021-04-27 17:19:59 +03:00
freezer.go core/rawdb: enforce readonly in freezer instantiation (#24119) 2022-01-18 11:29:38 +02:00
freezer_batch.go core/rawdb: better error message in freezer (#23901) 2021-11-16 11:33:56 +02:00
freezer_table.go core/rawdb: enforce readonly in freezer instantiation (#24119) 2022-01-18 11:29:38 +02:00
freezer_table_test.go core/rawdb: enforce readonly in freezer instantiation (#24119) 2022-01-18 11:29:38 +02:00
freezer_test.go core/rawdb: enforce readonly in freezer instantiation (#24119) 2022-01-18 11:29:38 +02:00
schema.go all: core rework for the merge transition (#23761) 2021-11-26 13:23:02 +02:00
table.go core/rawdb, ethdb: introduce batched/atomic reads from ancients (#23566) 2021-10-25 16:24:27 +02:00
table_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00