Skip to content

Positive inbound fees mess with route finding #2901

@DerEwige

Description

@DerEwige

By deactivating a security switch, it is possible to set positive inbound fees on LND nodes.
Channels with positive inbound fees are not backwards compatible and they mess with the route finder in an unexpected way.

If a node (not knowing about inbound fees) tries a route containing a single hop with positive inbound fees, that route will fail.
The failure is “insufficient Fee” at node X. When receiving this error eclair (and all other implementation afaik) will attribute that error to the outbound channel of the node.
But in reality, the error happened on the inbound channel.

By attributing the error to the wrong edge the ability to find routes decreases.
Currently this effect is not very strong, as there are only very few nodes with positive inbound fees.

As eclair currently does not intend to support this version of inbound fees I would suggest to at very least block all channels with positive inbound fees by adding them to the ban list.
Those channels will never work and with this simple trick you will prevent the route finding from slowly falling spiraling into madness.

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