]> git.bitcoin.ninja Git - rust-lightning/commit
Only include channel_update in failure if needed by error code
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 8 Mar 2024 07:31:14 +0000 (23:31 -0800)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 27 Mar 2024 21:28:03 +0000 (14:28 -0700)
commitcc7faa3bb427f92fd09c06d0632096cee81178e1
tree88fec8ddbbb05ceef52ea0c91cbf6beea66bdaf8
parentb9ca5788f5b1caca660004fe94a64017ae8a7b5e
Only include channel_update in failure if needed by error code

This simplifies the failure path by allowing us to return the general
error code for a failure, which we can then amend based on whether it
was for a phantom forward.
lightning/src/ln/channelmanager.rs