pub struct WasteMetric(pub f32);
Expand description
Measures the efficiency of input selection in satoshis, helping evaluate algorithms based on current and long-term fee rates
WasteMetric strikes a balance between minimizing current transaction fees and overall fees during the wallet’s lifetime. In high fee rate environments, selecting fewer inputs reduces transaction fees. In low fee rate environments, selecting more inputs reduces overall fees. It compares various selection algorithms to find the most optimized solution, represented by the lowest WasteMetric value.
Tuple Fields§
§0: f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasteMetric
impl RefUnwindSafe for WasteMetric
impl Send for WasteMetric
impl Sync for WasteMetric
impl Unpin for WasteMetric
impl UnwindSafe for WasteMetric
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more