Skip to content

execution/type: Fix invalid RLP encoding of StateSync transactions#149

Open
ngotchac wants to merge 1 commit into
0xPolygon:release/3.2from
ngotchac:ngotchac/fix-statesynctx-rlp
Open

execution/type: Fix invalid RLP encoding of StateSync transactions#149
ngotchac wants to merge 1 commit into
0xPolygon:release/3.2from
ngotchac:ngotchac/fix-statesynctx-rlp

Conversation

@ngotchac
Copy link
Copy Markdown

EncodingSize() must return the inner size, and not the size of the already RLP-encoded tx.

This triggered issues on Blocks sent via the P2P layer which were sending RLP-encoded blocks declared as having 2 or 3 bytes more than the actual data, leading to failures to decode.

`EncodingSize()` must return the inner size, and not the size of
the already RLP-encoded tx.

This triggered issues on Blocks sent via the P2P layer which were
sending RLP-encoded blocks declared as having 2 or 3 bytes more than the
actual data, leading to failures to decode.
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.

1 participant