]> git.bitcoin.ninja Git - rust-lightning/commit
Use correct default value when comparing to `htlc_maximum_msat`
authorMatt Corallo <git@bluematt.me>
Fri, 15 Dec 2023 22:32:24 +0000 (22:32 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 15 Dec 2023 22:32:24 +0000 (22:32 +0000)
commit642240e867c1f89134f7eeb5275231562f40e344
tree12e75218d130687174eb8ec80b57d37fdd6a5fb9
parentbb0ddad00d98359fef93f4dc51f41bd2f9b5b4e8
Use correct default value when comparing to `htlc_maximum_msat`

62f866965436fff1a8e98ee655a8a6dcbb8716c1 added two
`htlc_maximum_msat.unwrap_or`s, but used a default value of 0,
spuriously causing all HTLCs to fail if we don't have an htlc
maximum value. This should be mostly harmless, but we should fix it
anyway.
lightning/src/routing/router.rs