]> git.bitcoin.ninja Git - rust-lightning/commit
Make Channel::commit_tx_fee_msat static and take fee explicitly
authorMatt Corallo <git@bluematt.me>
Mon, 15 Nov 2021 23:22:08 +0000 (23:22 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 22 Nov 2021 23:27:25 +0000 (23:27 +0000)
commita33d3b98d7c6c4c786e53f5c904cb8620ec54e24
treeaca4e1b73ec12a60ba70369e7848bec002654b85
parentba50dd57868a78d00ed1a3c7a9089cf39d3ca235
Make Channel::commit_tx_fee_msat static and take fee explicitly

This may avoid risk of bugs in the future as it requires the caller
to think about the fee being used, not just blindly use the current
(committed) channel feerate.
lightning/src/ln/channel.rs