Fix bug in Channel
authorjoe.miyamoto <joe.miyamoto@bitcoinbank.co.jp>
Thu, 13 Aug 2020 08:10:24 +0000 (17:10 +0900)
committerjoe.miyamoto <joe.miyamoto@bitcoinbank.co.jp>
Thu, 13 Aug 2020 08:10:24 +0000 (17:10 +0900)
commit54916db957b59cbbfd931d0c163a2c673dafc4c8
tree4cbacc57a5836e1a16eb29f26ba3d6b6a037ada7
parent1d2d39325872a553335bee4a71ac89f7512db4fb
Fix bug in Channel

Before this commit, `fn get_inbound_outbound_available_balance_msat` always returns 0.
It is because using `cmp::min` instead of `cmp::max` .
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs