]> git.bitcoin.ninja Git - rust-lightning/commit
Encapsulate `HTLCFailReason` to not expose struct variants
authorMatt Corallo <git@bluematt.me>
Thu, 1 Dec 2022 19:28:32 +0000 (19:28 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 6 Dec 2022 20:00:44 +0000 (20:00 +0000)
commit4011db57f7e0023da0fe041cfacf09fc32b18fcd
tree6478bf3ab3456c8fb82725802f8a65b32697e790
parent2485ef38c344f34efec7adf0413836130dd2a138
Encapsulate `HTLCFailReason` to not expose struct variants

Now that `HTLCFailReason` is opaque and in `onion_utils`, we should
encapsulate it so that `ChannelManager` can no longer directly
access its inner fields.
lightning/src/ln/onion_utils.rs