]> git.bitcoin.ninja Git - rust-lightning/commit
Ignore partially-pruned channels during routing 2024-05-no-dir-with-on-side-offline
authorMatt Corallo <git@bluematt.me>
Mon, 6 May 2024 01:23:56 +0000 (01:23 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 May 2024 15:27:42 +0000 (15:27 +0000)
commit4fd8cb8909fa8889c0cedb7524ed6b717fa9ef01
tree75da53339d46c23feb25b029f4de07b5dc189ab0
parent37c431ad687e338bdef2248a746c41eb013b3573
Ignore partially-pruned channels during routing

If we prune one side of a channel's `ChannelUpdateInfo` that means
the node hasn't been online for two weeks (as they haven't
generated a new `channel_update` in that time). In such cases, even
if we haven't yet pruned the channel entirely, we should definitely
not be treating these channels as candidates for routing.

Note that this requires some additional `channel_update`s in the
router tests, but all of the new ones are added as disabled
channels.

Fixes #1824
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs