Skip to content

Commit

Permalink
electra fixes with attestation types
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed May 16, 2024
1 parent cf5e091 commit ff475fd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ codegen-units = 1
incremental = false

[workspace.dependencies]
ethereum-consensus = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "98ca171" }
beacon-api-client = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "98ca171" }
ethereum-consensus = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "269ba9b" }
beacon-api-client = { git = "https://github.com/ralexstokes/ethereum-consensus", rev = "269ba9b" }

reth = { git = "https://github.com/paradigmxyz/reth", rev = "017cfa60c222aa93cf4e7dbe1f085e0d60f2096a" }
reth-interfaces = { git = "https://github.com/paradigmxyz/reth", rev = "017cfa60c222aa93cf4e7dbe1f085e0d60f2096a" }
Expand Down
15 changes: 13 additions & 2 deletions mev-relay-rs/src/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,19 @@ impl BlindedBlockProvider for Relay {
match unblind_block(signed_block, auction_context.execution_payload()) {
Ok(signed_block) => {
let version = signed_block.version();
let block_root =
signed_block.message().hash_tree_root().map_err(ConsensusError::from)?;
let block_root = match version {
Fork::Deneb => {
signed_block.message().hash_tree_root().map_err(ConsensusError::from)?
}
Fork::Electra => match signed_block {
SignedBeaconBlock::Electra(ref inner) => {
inner.message.hash_tree_root().map_err(ConsensusError::from)?
}
_ => unreachable!(),
},
_ => unreachable!(),
};

let request = SubmitSignedBeaconBlock {
signed_block: &signed_block,
kzg_proofs: auction_context.blobs_bundle().map(|bundle| bundle.proofs.as_ref()),
Expand Down

0 comments on commit ff475fd

Please sign in to comment.