mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-04-19 03:01:06 -04:00
This PR refactors `ProcessExecutionPayload` with `ApplyExecutionPayload` so caller can use Apply method to calculate post state root. Note that validations are not required for Apply function. We really need the state mutation lines that's: ``` 1. Ensure latest_block_header.state_root is set (if zero, set it to the pre‑payload HashTreeRoot)... 2. processExecutionRequests() 3. QueueBuilderPayment() 4. SetExecutionPayloadAvailability(state.Slot(), true) 5. SetLatestBlockHash(payload.BlockHash()) ``` I decided to keep them there because a. it's cheap b. it makes refactor cleaner to reason c. API/caller may want to validate envelope and bid consistency (ex: beacon api has option to validate consensus)
Prysmatic Labs Beacon Chain Implementation
This is the main project folder for the beacon chain implementation of Ethereum written in Go by Prysmatic Labs.
You can also read our main README and join our active chat room on Discord.
Also, read the official beacon chain specification, this design spec serves as a source of truth for the beacon chain implementation we follow at Prysmatic Labs.
