]> git.bitcoin.ninja Git - rust-lightning/commit
Fix dust buffer feerate calculation overflow
authorMatt Corallo <git@bluematt.me>
Sun, 24 Dec 2023 06:24:38 +0000 (06:24 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 29 Dec 2023 06:24:18 +0000 (06:24 +0000)
commit3b6a361ae76a087ac10c2e59f9163188fd5c20e1
treec35984831fdcc4d92bcb8f4e02fd3999dee30316
parent5d8cd5a0a2545ab2304addf4412256f4eac8aef1
Fix dust buffer feerate calculation overflow

If a peer provides a feerate which nears `u32::MAX`, we may
overflow calculating the dust buffer feerate, leading to spuriously
keeping non-anchor channels open when they should be force-closed.
lightning/src/ln/channel.rs