Skip to content

Dial worker loop simplification. Move backoff filtering together with other filters.  #2380

@sukunrt

Description

@sukunrt

This is a small simplification that I believe will fix tricky points in the worker loop.

We should do backoff filtering along with other address filtering in swarm.filterKnownUndialables
This will clean up some of the awkward error handling here and here

see #2320 (comment)
for how black hole detection can be made to work with this.

As a follow up I'd like to change the worker loop interface to just take the list of addresses to dial with the ranking and the address filtering and ranking all happens before the worker loop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/discussionTopical discussion; usually not changes to codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions