]> git.bitcoin.ninja Git - rust-lightning/commit
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>
Wed, 7 Jul 2021 19:45:33 +0000 (19:45 +0000)
commite3968e09939b0b48ec7b4b614a75018c0d3114b0
treeaa64b04ebc413f8c1cec823935762b72aec47c4b
parent422bdcf81467451a31a6052950759a86cdf1760a
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.
fuzz/src/chanmon_consistency.rs
lightning-background-processor/src/lib.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/events.rs