go-ethereum/triedb/pathdb
rjl493456442 a840e9b59f
triedb/pathdb: fix state revert on v2 history (#31060)
State history v2 has been shipped and will take effect after the Cancun fork.
However, the state revert function does not differentiate between v1 and v2,
instead blindly using the storage map key for state reversion. 

This mismatch between the keys of the live state set and the state history
can trigger a panic: `non-existent storage slot for reverting`.

This flaw has been fixed in this PR.
2025-01-22 14:06:36 +01:00
..
buffer.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
database.go cmd, core, miner: rework genesis setup (#30907) 2025-01-14 11:49:30 +01:00
database_test.go triedb/pathdb: fix state revert on v2 history (#31060) 2025-01-22 14:06:36 +01:00
difflayer.go triedb/pathdb: track flat state changes in pathdb (snapshot integration pt 2) (#30643) 2024-11-29 19:30:45 +08:00
difflayer_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
disklayer.go triedb/pathdb: fix state revert on v2 history (#31060) 2025-01-22 14:06:36 +01:00
errors.go all: remove duplicate word in comments (#29531) 2024-04-15 08:34:31 +02:00
execute.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
flush.go core, trie, triedb: minor changes from snapshot integration (#30599) 2024-10-18 17:06:31 +02:00
history.go triedb/pathdb: fix state revert on v2 history (#31060) 2025-01-22 14:06:36 +01:00
history_inspect.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
history_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
holdable_iterator.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
holdable_iterator_test.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
iterator.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
iterator_binary.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
iterator_fast.go all: use cmp.Compare (#30958) 2025-01-02 14:06:47 +01:00
iterator_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
journal.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
layertree.go triedb/pathdb: configure different node hasher in pathdb (#31008) 2025-01-10 20:51:19 +08:00
metrics.go triedb/pathdb: track flat state changes in pathdb (snapshot integration pt 2) (#30643) 2024-11-29 19:30:45 +08:00
nodes.go triedb/pathdb: track flat state changes in pathdb (snapshot integration pt 2) (#30643) 2024-11-29 19:30:45 +08:00
reader.go trie/pathdb: state iterator (snapshot integration pt 4) (#30654) 2024-12-16 21:10:08 +08:00
states.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00
states_test.go all: implement state history v2 (#30107) 2025-01-17 02:59:02 +01:00