Add custody_group_count to metadata in node/identity response#489
Add custody_group_count to metadata in node/identity response#489nflaig merged 3 commits intoethereum:masterfrom
custody_group_count to metadata in node/identity response#489Conversation
nflaig
left a comment
There was a problem hiding this comment.
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.
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, |
Add
custody_group_countto metadata.This field is part of
MetaDataV3used 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