From: LLFourn Date: Thu, 11 Feb 2021 23:25:57 +0000 (+1100) Subject: Improve docs of satisfaction_weight X-Git-Tag: v0.5.0~11^2~1 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.HexToArrayError.html?a=commitdiff_plain;h=d9a102afa9ffa97069aa30d66562192198ade039;p=bdk Improve docs of satisfaction_weight --- 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,