Skip to content

feat(core): Allow BN to sync headers from network outside of pruning window #4653

@walldiss

Description

@walldiss

Implementation ideas

The current implementation of pruned BN syncs full blocks from the consensus starting from genesis. When prunIng is enabled it downloads the entire block but only stores the header outside of pruning window

To optimize this inefficiency, we should allow bridge nodes to sync headers from the network outside the pruning window. This mode is much more efficient due to reduced bandwidth usage and should become the default behavior.

However, we should still keep the option to sync BN exclusively from the consensus node.

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