go-ethereum/eth/tracers
Matthieu Vachon 599c461cad The beacon root must be processed before any transactions to have correct state
The beacon root when applied in `state_processor.go` is performed right before executing transaction. That means that contract reliying on this value would query the same value found in the block header.

In that spirit, it means that any tracing/operation relying on state data which touches transaction must have updated the beacon root before any transaction processing. This PR brings this where I spotted where it was important through `StateAtTransaction` and those using with `StateAtBlock` and transactions.

For now I've put the beacon root update outside of `StateAtBlock`. I was reluctant to include it in `StateAtBlock` because technically the state at block doesn't include any state happening "in the block". But everywhere that `StateAtBlock` was used, it felt setting the beacon root was needed, so it would be posssible to change the semantic of the function and run any system pre-hooks.

Kinda relevant with PR #29372
2024-03-29 12:56:46 -04:00
..
internal eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
js eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
live eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
logger eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
native eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
api.go The beacon root must be processed before any transactions to have correct state 2024-03-29 12:56:46 -04:00
api_test.go all: remove dependency on golang.org/exp (#29314) 2024-03-25 07:50:18 +01:00
dir.go eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
live.go eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
tracers_test.go eth/tracers: live chain tracing with hooks (#29189) 2024-03-22 18:53:53 +01:00
tracker.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00
tracker_test.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00