From 8c29fe08f888291156017eb5176d49642d54a382 Mon Sep 17 00:00:00 2001 From: yancy Date: Tue, 17 Sep 2024 00:02:02 -0500 Subject: [PATCH] Revise doc comment Comment that the ceiling is computed instead of the floor. --- units/src/fee_rate.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/units/src/fee_rate.rs b/units/src/fee_rate.rs index 02e84dfe7..626fd34d3 100644 --- a/units/src/fee_rate.rs +++ b/units/src/fee_rate.rs @@ -86,6 +86,9 @@ impl FeeRate { /// Checked weight multiplication. /// /// Computes the absolute fee amount for a given [`Weight`] at this fee rate. + /// When the resulting fee is a non-integer amount, the amount is rounded up, + /// ensuring that the transaction fee is enough instead of falling short if + /// rounded down. /// /// [`None`] is returned if an overflow occurred. pub fn checked_mul_by_weight(self, rhs: Weight) -> Option {