pub enum Excess {
NoChange {
dust_threshold: u64,
remaining_amount: u64,
change_fee: u64,
},
Change {
amount: u64,
fee: u64,
},
}
Expand description
Remaining amount after performing coin selection
Fields
Threshold to consider amount as dust for this particular change script_pubkey
§remaining_amount: u64
Exceeding amount of current selection over outgoing value and fee costs
The calculated fee for the drain TxOut with the selected script_pubkey
It’s not possible to create spendable output from excess using the current drain output
Fields
Effective amount available to create change after deducting the change output fee
The deducted change output fee
It’s possible to create spendable output from excess using the current drain output
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.