]> git.bitcoin.ninja Git - rust-lightning/commit
Mark `ChannelManager::send_payment_with_route` as deprecated
authorMatt Corallo <git@bluematt.me>
Sun, 4 Aug 2024 15:06:12 +0000 (15:06 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 4 Aug 2024 16:53:27 +0000 (16:53 +0000)
commitbebd9d0fed13fe4b4766c4cd484d59377f154be9
tree308b6b7b3df95cb9b5bcf220f6739fd4156de1b2
parent8c1b3d1263f6b9247c0c819039ef2027dc4d4588
Mark `ChannelManager::send_payment_with_route` as deprecated

We probably should have done this long ago a release or two after
adding `send_payment`, but we didn't and the second best time is
now.

`send_payment_with_route` has particularly hard to use retry
semantics that make it unsuitable for real use. Once we get the
last of our users off of it, we'll want to remove it (or at least
mark it test-only), but we should start by deprecating it.
lightning/src/ln/channelmanager.rs