Skip to content

Commit 88a86d1

Browse files
author
Conor Okus
authored
Merge pull request #1211 from ConorOkus/2021-11-add-max-conversion
Update docs to add max return value to conversion list
2 parents 54114c9 + 0c34737 commit 88a86d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lightning/src/chain/chaininterface.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ pub enum ConfirmationTarget {
4141
pub trait FeeEstimator {
4242
/// Gets estimated satoshis of fee required per 1000 Weight-Units.
4343
///
44-
/// Must be no smaller than 253 (ie 1 satoshi-per-byte rounded up to ensure later round-downs
45-
/// don't put us below 1 satoshi-per-byte).
44+
/// Must return a value no smaller than 253 (ie 1 satoshi-per-byte rounded up to ensure later
45+
/// round-downs don't put us below 1 satoshi-per-byte).
4646
///
47-
/// This translates to:
48-
/// * satoshis-per-byte * 250
49-
/// * ceil(satoshis-per-kbyte / 4)
47+
/// This method can be implemented with the following unit conversions:
48+
/// * max(satoshis-per-byte * 250, 253)
49+
/// * max(satoshis-per-kbyte / 4, 253)
5050
fn get_est_sat_per_1000_weight(&self, confirmation_target: ConfirmationTarget) -> u32;
5151
}
5252

0 commit comments

Comments
 (0)