Skip to content

Conversation

povi
Copy link

@povi povi commented Oct 14, 2025

This PR swaps beacon_block_root and slot in places in DataColumnSidecar.

Motivation: There are currently two versions of DataColumnSidecar. During deserialization from SSZ, it can be tricky to determine which container version to deserialize into. Having the same byte offset for the slot field in both versions allows clients to read the slot value from the bytes (and thus gain insight into the container version) before full deserialization.

@potuz
Copy link
Contributor

potuz commented Oct 14, 2025

I'm fine with this, but anyway wouldn't the schema be identified by the fork digest in the message? if the peer is sending the wrong type anyway we'd reject it.

@povi
Copy link
Author

povi commented Oct 15, 2025

I'm fine with this, but anyway wouldn't the schema be identified by the fork digest in the message? if the peer is sending the wrong type anyway we'd reject it.

In gossipsub, yes. But this is useful property to have in range sync, persistence and other things.

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