Skip to content

[router] Validate invalid combinations of routerrpc settings #6553

@guggero

Description

@guggero

Background

Originally reported here: lightninglabs/loop#491

It looks like certain combinations of routerrpc.* settings can cause the path finding algorithm to search endlessly, using up a lot (and eventually all) memory available.

The settings in question were:

routerrpc.minrtprob=0.4
routerrpc.apriorihopprob=0.5
routerrpc.aprioriweight=0

My personal interpretation is that the combination of the min route probability of 40% with the a priori weight of 0 caused no routes to be found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions