Skip to content

FindContentQuery doesn't use Metric when calculating distance #1853

Open
@morph-dev

Description

@morph-dev

The FindContentQuery defined in crates/portalnet/src/find/iterators/findcontent.rs uses discv5::Key::distance for calculating distance between node and content.

Instead, it should have Metric as a generic type. It should also consider whether it makes sense to use distance or not (e.g. for ephemeral headers and beacon content).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestflamingoMaintenance or downtime for the person on Flamingo rotation to tackleshelf-stableWill not be closed by stale-bot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions