Skip to content

Consider deduplicating consensus types #42

@wemeetagain

Description

@wemeetagain

The SignedBeaconBlockHeader type is identical to the one in phase0.zig. Instead of redefining it, you can re-export it to avoid code duplication and improve maintainability. This pattern of re-defining an unchanged SignedBeaconBlockHeader is repeated in bellatrix.zig, capella.zig, deneb.zig, and electra.zig. Please consider re-exporting this type from the preceding fork's module in all affected files.

pub const SignedBeaconBlockHeader = phase0.SignedBeaconBlockHeader;

Originally posted by @gemini-code-assist[bot] in #40 (comment)

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