]> git.bitcoin.ninja Git - rust-lightning/commit
Add constructors to HTLCFailReason
authorTobin C. Harding <me@tobin.cc>
Tue, 29 Nov 2022 00:41:14 +0000 (11:41 +1100)
committerTobin C. Harding <me@tobin.cc>
Thu, 1 Dec 2022 02:30:10 +0000 (13:30 +1100)
commit555cb4024fde76ed2bea0466289ae45c8904b395
treec4563ce7ff9ebae37cd3385f6cf610bbd43fe9bb
parentfb6e018eb8fc6598da0b9f36ce7aa458f4df6a0c
Add constructors to HTLCFailReason

We create `HTLCFailReason` inline in function calls in a bunch of places
in the `channelmanager` module, we can make the code more terse with no
loss of clarity by implementing a couple of constructor methods.
lightning/src/ln/channelmanager.rs