We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5791d61 commit 031d12aCopy full SHA for 031d12a
src/types.rs
@@ -147,6 +147,19 @@ pub struct WeightedUtxo {
147
pub utxo: Utxo,
148
}
149
150
+/// A [`TxOut`] with its `satisfaction_weight`, if it were spend by the wallet owning the produced
151
+/// UTXO from this TxOut.
152
+#[derive(Debug, Clone, PartialEq)]
153
+pub struct WeightedTxOut {
154
+ /// The weight of the witness data and `scriptSig` expressed in [weight units]. This is used to
155
+ /// properly compute the cost of change for waste metric.
156
+ ///
157
+ /// [weight units]: https://en.bitcoin.it/wiki/Weight_units
158
+ pub satisfaction_weight: usize,
159
+ /// The TxOut
160
+ pub txout: TxOut,
161
+}
162
+
163
#[derive(Debug, Clone, PartialEq)]
164
/// An unspent transaction output (UTXO).
165
pub enum Utxo {
0 commit comments