Skip to content

Should ATTESTATION_SUBNET_PREFIX_BITS exist in config.yaml? #4799

@0xmrree

Description

@0xmrree

Was updating the lighthouse beacon spec API for missing fields and came across the ATTESTATION_SUBNET_PREFIX_BITS config. Given ATTESTATION_SUBNET_PREFIX_BITS is derived from ceillog2(ATTESTATION_SUBNET_COUNT) + ATTESTATION_SUBNET_EXTRA_BITS should ATTESTATION_SUBNET_PREFIX_BITS still be in the spec? Having this field causes some ambiguity in beacon client behavior if the given prefix bits does not equal the formula above. Is this field here for backwards compatibly? If so, the spec should address how the edge case above should be handled. For lighthouse I simply ignore the prefix bits field, calculate it runtime, but still provide it in the spec API.

For context, this came up in sigp/lighthouse#8571

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions