Struct bdk::WeightedUtxo
source · pub struct WeightedUtxo {
pub satisfaction_weight: usize,
pub utxo: Utxo,
}
Expand description
A Utxo
with its satisfaction_weight
.
Fields§
§satisfaction_weight: usize
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.
utxo: Utxo
The UTXO
Trait Implementations§
source§impl Clone for WeightedUtxo
impl Clone for WeightedUtxo
source§fn clone(&self) -> WeightedUtxo
fn clone(&self) -> WeightedUtxo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WeightedUtxo
impl Debug for WeightedUtxo
source§impl PartialEq<WeightedUtxo> for WeightedUtxo
impl PartialEq<WeightedUtxo> for WeightedUtxo
source§fn eq(&self, other: &WeightedUtxo) -> bool
fn eq(&self, other: &WeightedUtxo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.