]> git.bitcoin.ninja Git - rust-lightning/commit
Fail request_refund_payment for unsupported chain
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 29 Feb 2024 21:21:03 +0000 (15:21 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 8 Mar 2024 21:57:10 +0000 (15:57 -0600)
commit228e72ca34428ec9d70da677c592fe128e470b3c
tree24a9898c542484068a10da1a8db1204870a7810f
parentad91fcd510d7620df438a4cf59f7ed7b080adb19
Fail request_refund_payment for unsupported chain

If a Refund has an unsupported chain, ChannelManager should not send an
invoice as it can't be paid on that chain. Instead, return an error when
calling ChannelManager::request_refund_payment for such refunds.
lightning/src/ln/channelmanager.rs
lightning/src/ln/offers_tests.rs