Commit a25ce5c
committed
Replace get_route with get_route_and_payment_hash
The interface for get_route will change to take a scorer. Using
get_route_and_payment_hash whenever possible allows for keeping the
scorer inside get_route_and_payment_hash rather than at every call site.
Replace get_route_and_payment_hash with get_route wherever possible.
Additionally, update get_route_and_payment_hash to use the sending
node's logger and useable channels.1 parent fea8b04 commit a25ce5c
File tree
7 files changed
+213
-371
lines changed- lightning/src/ln
7 files changed
+213
-371
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5744 | 5744 | | |
5745 | 5745 | | |
5746 | 5746 | | |
5747 | | - | |
5748 | 5747 | | |
5749 | 5748 | | |
5750 | | - | |
5751 | | - | |
5752 | | - | |
| 5749 | + | |
| 5750 | + | |
5753 | 5751 | | |
5754 | 5752 | | |
5755 | 5753 | | |
| |||
6001 | 5999 | | |
6002 | 6000 | | |
6003 | 6001 | | |
6004 | | - | |
6005 | 6002 | | |
6006 | 6003 | | |
6007 | | - | |
6008 | | - | |
6009 | | - | |
| 6004 | + | |
| 6005 | + | |
6010 | 6006 | | |
6011 | 6007 | | |
6012 | 6008 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
967 | 972 | | |
968 | 973 | | |
969 | 974 | | |
970 | 975 | | |
971 | | - | |
| 976 | + | |
972 | 977 | | |
973 | 978 | | |
974 | 979 | | |
| |||
977 | 982 | | |
978 | 983 | | |
979 | 984 | | |
980 | | - | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
981 | 989 | | |
982 | | - | |
983 | | - | |
984 | | - | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
985 | 996 | | |
986 | 997 | | |
987 | 998 | | |
| |||
0 commit comments