Skip to content

Commit

Permalink
Post-Capella payloads aren't actually valid (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul authored Jun 4, 2023
1 parent 865d9f0 commit fbd3e1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/payload_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ pub struct PayloadInfo {
pub block_number: u64,
/// Execution state root.
///
/// We use this as the state root of the block built upon this block. With 0 transactions, the
/// state root does not change!
/// We use this as the state root of the block built upon this block. For Bellatrix this allows
/// us to build valid blocks, but post-Capella this doesn't work because the withdrawals
/// affect the state root and we can't compute that change without an EL.
pub state_root: Hash256,
/// For EIP-1559 calculations.
pub base_fee_per_gas: Uint256,
Expand Down

0 comments on commit fbd3e1a

Please sign in to comment.