Skip to content

Add custody_group_count to metadata in node/identity response#489

Merged
nflaig merged 3 commits into
ethereum:masterfrom
jimmygchen:metadata-v3
Apr 1, 2025
Merged

Add custody_group_count to metadata in node/identity response#489
nflaig merged 3 commits into
ethereum:masterfrom
jimmygchen:metadata-v3

Conversation

@jimmygchen

Copy link
Copy Markdown
Contributor

Add custody_group_count to metadata.

This field is part of MetaDataV3 used by PeerDAS and will be available from the Fulu fork.

https://github.com/ethereum/consensus-specs/blob/e79ef816aef05e34eff0b53311cf50c13fb67fc9/specs/fulu/p2p-interface.md?plain=1#L159

nflaig
nflaig previously approved these changes Jan 22, 2025

@nflaig nflaig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess we did the same for syncnets in #150 to add it as an optional field.

The problem with this approach is that it makes returning a ssz response more complicated, although as per spec this api only supports json.

I would be in favor of bumping the api version if we add new properties to data object but this seems reasonable as well since we used the same approach before.

@rolfyone rolfyone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@dapplion

dapplion commented Jan 25, 2025

Copy link
Copy Markdown
Member

The problem with this approach is that it makes returning a ssz response more complicated, although as per spec this api only supports json.

For SSZ you could set both values to zero if pre-v3

@nflaig

nflaig commented Jan 25, 2025

Copy link
Copy Markdown
Member

For SSZ you could set both values to zero if pre-v3

That works if all clients do this but without version bump of the api you don't really know what to expect and might get different result based on client version.

My comment was more general that we shouldn't add optional fields, /node apis already don't work well with SSZ anyways.

@rolfyone rolfyone added the Fulu label Jan 29, 2025

@agnxsh agnxsh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants