mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Merge pull request #1211 from ConorOkus/2021-11-add-max-conversion
Update docs to add max return value to conversion list
This commit is contained in:
commit
88a86d126f
1 changed files with 5 additions and 5 deletions
|
@ -41,12 +41,12 @@ pub enum ConfirmationTarget {
|
||||||
pub trait FeeEstimator {
|
pub trait FeeEstimator {
|
||||||
/// Gets estimated satoshis of fee required per 1000 Weight-Units.
|
/// Gets estimated satoshis of fee required per 1000 Weight-Units.
|
||||||
///
|
///
|
||||||
/// Must be no smaller than 253 (ie 1 satoshi-per-byte rounded up to ensure later round-downs
|
/// Must return a value no smaller than 253 (ie 1 satoshi-per-byte rounded up to ensure later
|
||||||
/// don't put us below 1 satoshi-per-byte).
|
/// round-downs don't put us below 1 satoshi-per-byte).
|
||||||
///
|
///
|
||||||
/// This translates to:
|
/// This method can be implemented with the following unit conversions:
|
||||||
/// * satoshis-per-byte * 250
|
/// * max(satoshis-per-byte * 250, 253)
|
||||||
/// * ceil(satoshis-per-kbyte / 4)
|
/// * max(satoshis-per-kbyte / 4, 253)
|
||||||
fn get_est_sat_per_1000_weight(&self, confirmation_target: ConfirmationTarget) -> u32;
|
fn get_est_sat_per_1000_weight(&self, confirmation_target: ConfirmationTarget) -> u32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue