]> git.bitcoin.ninja Git - rust-lightning/commit
Allow forwarding HTLCs that were constructed for previous config
authorWilmer Paulino <wilmer.paulino@gmail.com>
Wed, 15 Jun 2022 23:33:23 +0000 (16:33 -0700)
committerWilmer Paulino <wilmer.paulino@gmail.com>
Mon, 20 Jun 2022 20:12:57 +0000 (13:12 -0700)
commite14f25ce0c01059c2d2d1b08f7ddc0fb925245ee
tree0bd956089375b513b00863c77611e09d376eab65
parente2f216b694cfc2302e97280f9e9a6775941fd563
Allow forwarding HTLCs that were constructed for previous config

This is mostly motivated by the fact that payments may happen while the
latest `ChannelUpdate` indicating our new `ChannelConfig` is still
propagating throughout the network. By temporarily allowing the previous
config, we can help reduce payment failures across the network.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/onion_route_tests.rs