Send channel_update messages to direct peers on private channels
authorMatt Corallo <git@bluematt.me>
Sat, 12 Jun 2021 21:58:50 +0000 (21:58 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 12 Jun 2021 21:58:50 +0000 (21:58 +0000)
commitb9a624f46db9aaa28c0c612310bfc976058549de
tree63188e58feb68fa12cff85558329cdd84972dd35
parente1ab066185ed0a2d23a641497e20baf95ceafe29
Send channel_update messages to direct peers on private channels

If we are a public node and have a private channel, our
counterparty needs to know the fees which we will charge to forward
payments to them. Without sending them a channel_update, they have
no way to learn that information, resulting in the channel being
effectively useless for outbound-from-us payments.

This commit fixes our lack of channel_update messages to private
channel counterparties, ensuring we always send them a
channel_update after the channel funding is confirmed.
lightning/src/ln/channelmanager.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/events.rs