From d9a102afa9ffa97069aa30d66562192198ade039 Mon Sep 17 00:00:00 2001 From: LLFourn Date: Fri, 12 Feb 2021 10:25:57 +1100 Subject: [PATCH] Improve docs of satisfaction_weight --- src/types.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types.rs b/src/types.rs index 347325a8..9873150a 100644 --- a/src/types.rs +++ b/src/types.rs @@ -106,8 +106,10 @@ pub struct LocalUtxo { /// A [`Utxo`] with its `satisfaction_weight`. #[derive(Debug, Clone, PartialEq)] pub struct WeightedUtxo { - /// The weight of the witness data or `scriptSig`. - /// This is used to properly maintain the feerate when doing coin selection. + /// The weight of the witness data and `scriptSig` expressed in [weight units]. This is used to + /// properly maintain the feerate when adding this input to a transaction during coin selection. + /// + /// [weight units]: https://en.bitcoin.it/wiki/Weight_units pub satisfaction_weight: usize, /// The UTXO pub utxo: Utxo,