]> git.bitcoin.ninja Git - rust-lightning/commit
Consider counterparty inbound fees when forwarding 2023-01-inbound-fees
authorMatt Corallo <git@bluematt.me>
Mon, 9 Jan 2023 18:42:59 +0000 (18:42 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 9 Jan 2023 19:33:53 +0000 (19:33 +0000)
commit9f00a0bf0c69b8fb07e3892219708ecf47992af2
tree8124d1a39ea0cbdd35e00c5c3824e97ccbed9171
parentafbb9dd4b516cafea3975d74e485568ca37d1d4e
Consider counterparty inbound fees when forwarding

While this code could without question be substantially more
concise, being overly verbose and checking lots of overflows seems
much better when we're checking HTLC forwarding amounts, given any
bug trivially loses us money.
lightning/src/ln/channel.rs