go-ethereum/core/rawdb
Marius van der Wijden 3038e480f5
all: core rework for the merge transition (#23761)
* all: work for eth1/2 transtition

* consensus/beacon, eth: change beacon difficulty to 0

* eth: updates

* all: add terminalBlockDifficulty config, fix rebasing issues

* eth: implemented merge interop spec

* internal/ethapi: update to v1.0.0.alpha.2

                                                                 This commit updates the code to the new spec, moving payloadId into
                                                                 it's own object. It also fixes an issue with finalizing an empty blockhash.
                                                                 It also properly sets the basefee

* all: sync polishes, other fixes + refactors

* core, eth: correct semantics for LeavePoW, EnterPoS

* core: fixed rebasing artifacts

* core: light: performance improvements

* core: use keyed field (f)

* core: eth: fix compilation issues + tests

* eth/catalyst: dbetter error codes

* all: move Merger to consensus/, remove reliance on it in bc

* all: renamed EnterPoS and LeavePoW to ReachTDD and FinalizePoS

* core: make mergelogs a function

* core: use InsertChain instead of InsertBlock

* les: drop merger from lightchain object

* consensus: add merger

* core: recoverAncestors in catalyst mode

* core: fix nitpick

* all: removed merger from beacon, use TTD, nitpicks

* consensus: eth: add docstring, removed unnecessary code duplication

* consensus/beacon: better comment

* all: easy to fix nitpicks by karalabe

* consensus/beacon: verify known headers to be sure

* core: comments

* core: eth: don't drop peers who advertise blocks, nitpicks

* core: never add beacon blocks to the future queue

* core: fixed nitpicks

* consensus/beacon: simplify IsTTDReached check

* consensus/beacon: correct IsTTDReached check

Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-11-26 13:23:02 +02:00
..
testdata core/rawdb: avoid unnecessary receipt processing for log filtering (#23147) 2021-09-28 12:54:49 +02:00
accessors_chain_test.go core/rawdb: add slow path for getting legacy logs (#23879) 2021-11-11 15:04:06 +01:00
accessors_chain.go core/rawdb: add slow path for getting legacy logs (#23879) 2021-11-11 15:04:06 +01: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_indexes.go core/rawdb: fix logs to print block number, not address (#23328) 2021-08-04 11:10:37 +03:00
accessors_metadata.go all: core rework for the merge transition (#23761) 2021-11-26 13:23:02 +02:00
accessors_snapshot.go cmd/geth: implement data import and export (#22931) 2021-11-02 11:31:45 +01:00
accessors_state.go core, eth, les, trie: add a prefix to contract code (#21080) 2020-08-21 15:10:40 +03:00
chain_iterator_test.go core/rawdb: fix transaction indexing/unindexing hashing error (#22457) 2021-03-16 12:15:14 +02:00
chain_iterator.go core/rawdb: use AncientRange when initializing leveldb from freezer (#23612) 2021-11-23 12:37:26 +01:00
database_test.go eth/protocols/snap: generate storage trie from full dirty snap data (#22668) 2021-04-27 17:19:59 +03:00
database.go all: core rework for the merge transition (#23761) 2021-11-26 13:23:02 +02:00
freezer_batch.go core/rawdb: better error message in freezer (#23901) 2021-11-16 11:33:56 +02:00
freezer_table_test.go core/rawdb: freezer batch write (#23462) 2021-09-07 12:31:17 +02:00
freezer_table.go core/rawdb: freezer batch write (#23462) 2021-09-07 12:31:17 +02:00
freezer_test.go core/rawdb: better error message in freezer (#23901) 2021-11-16 11:33:56 +02:00
freezer.go core/rawdb, ethdb: introduce batched/atomic reads from ancients (#23566) 2021-10-25 16:24:27 +02:00
schema.go all: core rework for the merge transition (#23761) 2021-11-26 13:23:02 +02:00
table_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
table.go core/rawdb, ethdb: introduce batched/atomic reads from ancients (#23566) 2021-10-25 16:24:27 +02:00