Allow nodes to be avoided during pathfinding
authorElias Rohrer <ero@tnull.de>
Sat, 18 Jun 2022 14:24:37 +0000 (16:24 +0200)
committerElias Rohrer <ero@tnull.de>
Fri, 24 Jun 2022 06:31:41 +0000 (08:31 +0200)
commit57d8257a0b8e7ace18d9260810285314902d11aa
tree6c0f1ecf46a52f014aa8361363cc03c35c137494
parent3676a056c85f54347e7e079e913317a79e26a2ae
Allow nodes to be avoided during pathfinding

Users may want to - for whatever reasons - prevent payments to be routed
over certain nodes. This change therefore allows to add `NodeId`s to a
list of banned nodes, which then will be avoided during path finding.
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs