Skip to content

Update BlindedBlobsBundle SSZ and deserialize signed blinded block (Deneb) #124

Merged
ralexstokes merged 7 commits intoralexstokes:mainfrom
jimmygchen:deserialize_deneb_block
Sep 12, 2023
Merged

Update BlindedBlobsBundle SSZ and deserialize signed blinded block (Deneb) #124
ralexstokes merged 7 commits intoralexstokes:mainfrom
jimmygchen:deserialize_deneb_block

Conversation

@jimmygchen
Copy link
Copy Markdown
Contributor

@jimmygchen jimmygchen commented Sep 5, 2023

  • Update BlindedBlobsBundle SSZ, spec PR here. I've also updated BlobsBundle to keep it consistent (although it doesn't really matter because they are never signed)
  • Update handle_open_bid to deserialize Deneb variant of SignedBlindedBlockAndBlobSidecars. The try-and-fallback approach isn't really ideal, it may be worth considering a v2 endpoint with a mandatory Eth-Consensus-Version header (and perhaps SSZ support as well).
  • I also had to update the ethereum-consensus and beacon-api-client dependencies to make mev-rs work for latest deneb spec.

@jimmygchen jimmygchen force-pushed the deserialize_deneb_block branch from 9896666 to dedc77a Compare September 5, 2023 06:53
Comment thread Cargo.toml Outdated
Copy link
Copy Markdown
Owner

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally looks great!

have one ask to unify how we handle the clocks

and a question on your decoding strategy

Comment thread mev-boost-rs/src/service.rs Outdated
Comment thread mev-build-rs/src/service.rs Outdated
Comment thread mev-relay-rs/src/service.rs Outdated
Comment thread mev-rs/src/blinded_block_provider/api/server.rs Outdated
Copy link
Copy Markdown
Owner

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spectacular, thanks!

Err(_) => return Err(ApiClientError::from(err).into()),
},
};
let mut block = deneb::SignedBlindedBlockAndBlobSidecars::deserialize(&block)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is nice!

@ralexstokes ralexstokes merged commit 893f35d into ralexstokes:main Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants