]> git.bitcoin.ninja Git - rust-lightning/commit
Rewrite test_update_fee_that_funder_cannot_afford to avoid magic
authorMatt Corallo <git@bluematt.me>
Wed, 10 Nov 2021 03:44:04 +0000 (03:44 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Nov 2021 01:20:43 +0000 (01:20 +0000)
commit1d30e06893ff6e19fbbe472ea74ef150f296cbfc
tree5ba9c22fbe36e7bd6ddf993fae19b77a32d7a941
parenta33d3b98d7c6c4c786e53f5c904cb8620ec54e24
Rewrite test_update_fee_that_funder_cannot_afford to avoid magic

Instead of magic hard-coded constants, its better for tests to
derive the values used so that they change if constants are changed
and so that it is easier to re-derive constants in the future as
needed.
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs