-
Notifications
You must be signed in to change notification settings - Fork 1
fix: update to eip 7594 blob handling #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
isn't this already ticketed for @Evalir ? where are we at there? |
| let tx_envelope = sendable | ||
| .try_into_envelope()? | ||
| .try_into_7594() | ||
| .map_err(|e| eyre::eyre!("failed to map 4844 to 7594: {e:?}"))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use wrap_err. The current code will erase context
| .try_into_envelope()? | ||
| .try_into_7594() | ||
| .map_err(|e| eyre::eyre!("failed to map 4844 to 7594: {e:?}"))?; | ||
| debug!(?tx_envelope, "prepared signed rollup block transaction envelope"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't trace out the envelope, it'll be 100kb+ i think
| /// Encodes the sidecar and then builds the 4844 blob transaction from the provided header and signature values. | ||
| async fn build_blob_tx(&self) -> eyre::Result<TransactionRequest> { | ||
| /// Build the sidecar and input data for the transaction. | ||
| async fn build_sidecar_and_data(&self) -> eyre::Result<(BlobTransactionSidecar, Vec<u8>)> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's break these into two functions rather than return s tuple
| .with_to(self.config.constants.host_zenith()) | ||
| .with_nonce(nonce); | ||
| debug!(?tx, "constructed rollup block transaction request"); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't trace the tx same reason as above

fix: update to eip 7594 blob handling
This PR changes the
prep_transactionto create a EIP-7594 compatible blob sidecar.Closes ENG-1582
Related to ENG-1562