Exclude disconnected peers from BlindedPath
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 4 Jun 2024 23:48:07 +0000 (18:48 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 5 Jun 2024 22:52:30 +0000 (17:52 -0500)
commit7db6616e52e3a2910b7237ce95e80a63abf9e0a5
tree4b6507f90a7b0014297e52988e800c5273c9afd4
parent15fa0d8f2084d0ad9f9223e5b185ee0543e9e365
Exclude disconnected peers from BlindedPath

When calling MessageRouter::create_blinded_path, ChannelManager was
including disconnected peers. Filter peers such that only connected ones
are included. Otherwise, the resulting BlindedPath may not work.
lightning/src/ln/channelmanager.rs
lightning/src/ln/offers_tests.rs