Merge rust-bitcoin/rust-bitcoin#4575: Fix typo
7b52b9c3a3
Fix typo (yancy) Pull request description: Seems the comment has a stutter ACKs for top commit: tcharding: ACK7b52b9c3a3
apoelstra: ACK 7b52b9c3a3c28afad41d9a246302ce95e4997ee5; successfully ran local tests Tree-SHA512: 1cb11c03bb3043c19936dbe4c2ccfa1e8fa43e90c118c969da536d010d95762966cc86e257e3365d18d96cc6dfe4a63d94c4d16b1b766dde3882286ce9bb4925
This commit is contained in:
commit
b0981fc21d
|
@ -62,7 +62,7 @@ impl FeeRate {
|
||||||
pub fn from_sat_per_vb(sat_vb: u64) -> Option<Self> {
|
pub fn from_sat_per_vb(sat_vb: u64) -> Option<Self> {
|
||||||
// 1 vb == 4 wu
|
// 1 vb == 4 wu
|
||||||
// 1 sat/vb == 1/4 sat/wu
|
// 1 sat/vb == 1/4 sat/wu
|
||||||
// sat_vb sat/vb * 1000 / 4 == sat/kwu
|
// sat/vb * 1000 / 4 == sat/kwu
|
||||||
Some(FeeRate::from_sat_per_kwu(sat_vb.checked_mul(1000 / 4)?))
|
Some(FeeRate::from_sat_per_kwu(sat_vb.checked_mul(1000 / 4)?))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue