Skip to content

Remove canonical_head_block_root from PersistedBeaconChain #1784

@michaelsproul

Description

@michaelsproul

Description

In #1639 the canonical_head_block_root field of PersistedBeaconChain was rendered obsolete by the use of fork choice to derive the head block on startup. We intended to remove it entirely when we did the breaking schema change for v0.3.0, but that PR (#1638) got closed and forgotten about ☹️

As a practice migration, I think we should remove the field entirely in a future release, i.e. automatically update the user's database from the old schema (with the block root) to the new (without) on startup.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions