Commit 3775686
committed
Use channel's real funding amounts when processing RGS data
Neither `channel_announcement`s nor `channel_update`s contain a
channel's actual funding amount, complicating scoring as nodes may
set an `htlc_maximum_msat` to something less than the funding
amount. When scoring, we use `htlc_maximum_msat` anyway if we don't
know the funding amount, but its not a perfect proxy.
In
lightningdevkit/rapid-gossip-sync-server#102
we started including a channel's real funding amount in RGS data,
and here we start parsing it and including it in our network graph.
Fixes #15591 parent d67bd0f commit 3775686
File tree
3 files changed
+26
-15
lines changed- lightning-background-processor/src
- lightning-rapid-gossip-sync/src
- lightning/src/routing
3 files changed
+26
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2521 | 2521 | | |
2522 | 2522 | | |
2523 | 2523 | | |
| 2524 | + | |
2524 | 2525 | | |
2525 | 2526 | | |
2526 | 2527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
270 | 287 | | |
271 | 288 | | |
| 289 | + | |
272 | 290 | | |
273 | 291 | | |
274 | 292 | | |
| |||
286 | 304 | | |
287 | 305 | | |
288 | 306 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | 307 | | |
300 | 308 | | |
301 | 309 | | |
| |||
664 | 672 | | |
665 | 673 | | |
666 | 674 | | |
667 | | - | |
| 675 | + | |
668 | 676 | | |
669 | 677 | | |
670 | 678 | | |
| |||
685 | 693 | | |
686 | 694 | | |
687 | 695 | | |
| 696 | + | |
| 697 | + | |
688 | 698 | | |
689 | 699 | | |
690 | | - | |
| 700 | + | |
691 | 701 | | |
692 | 702 | | |
693 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
2009 | | - | |
2010 | | - | |
| 2009 | + | |
| 2010 | + | |
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
| |||
2022 | 2022 | | |
2023 | 2023 | | |
2024 | 2024 | | |
2025 | | - | |
| 2025 | + | |
2026 | 2026 | | |
2027 | 2027 | | |
2028 | 2028 | | |
| |||
0 commit comments