]> git.bitcoin.ninja Git - rust-lightning/commit
Add source and target nodes to routing::Score
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 18 Oct 2021 23:36:35 +0000 (18:36 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 19 Oct 2021 18:03:02 +0000 (13:03 -0500)
commit54f490c8c1ad86dae608c717dfaa7d629279a4b5
tree31f290a620ac2c813b4ec1034754b826d130af56
parent57f0822f5a97b753901ac681e9787785b279e47a
Add source and target nodes to routing::Score

Expand routing::Score::channel_penalty_msat to include the source and
target node ids of the channel. This allows scorers to avoid certain
nodes altogether if desired.
lightning/src/routing/mod.rs
lightning/src/routing/router.rs
lightning/src/routing/scorer.rs