]> git.bitcoin.ninja Git - rust-lightning/commit
Fix `cmp::max` execution in `ChannelContext::get_dust_buffer_feerate`
authorjbesraa <jbesraa@gmail.com>
Tue, 26 Mar 2024 17:23:37 +0000 (19:23 +0200)
committerjbesraa <jbesraa@gmail.com>
Fri, 12 Apr 2024 20:41:14 +0000 (23:41 +0300)
commitc01745eec7414a340404398255dcd54580380348
tree0e2663cef9e9764528692ad0617c140004fa5410
parent3a9fe209e104e048921ad50be77a80b18a98b45c
Fix `cmp::max` execution in `ChannelContext::get_dust_buffer_feerate`

  The current `cmp::max` doesnt align with the function comment, ie its
  comparing 2530 and `feerate_plus_quarter` instead of `feerate_per_kw
  + 2530` and `feerate_plus_quarter` which is fixed in this commit
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs