Skip to content

Conversation

radik878
Copy link
Contributor

Comment on lines 311 to 317
// Compute payload length as the sum of the header and body payload lengths.
// This must exclude the outer list header bytes to be symmetrical with plain Block RLP.
let payload_length =
alloy_rlp::Encodable::length(self.header()) + alloy_rlp::Encodable::length(self.body());
alloy_rlp::Header { list: true, payload_length }.encode(out);
self.header().encode(out);
self.body().encode(out);
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is slightly problematic because this now assumes that B always decodes like this, which may or may not be the case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is slightly problematic because this now assumes that B always decodes like this, which may or may not be the case

corrected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

SealedBlock encodable only encodes the body
2 participants