Enum wallet::transaction::OutputStrategy
source · pub enum OutputStrategy {
BestEffort,
UtxoReshuffle,
}
Variants§
BestEffort
If the transaction needs to offload extra inputs in an extra change output then chose the best solution with the given circumstances
if there are only single utxos as input the change will be offloaded to a new change output with a new utxo.
if there’s group inputs for the same key, the group account will be used to offload the change (order may matter, i.e. if there’s multiple inputs with different account the first account will be used).
UtxoReshuffle
Along with privacy preserving, this one will have the interesting property to redistribute the change into multiple distinct utxos
however, if the change is only too small (less than 10x dust like):
- if one of the inputs contain a group key, the change will be distributed to the group account
- if there’s no account, the change will go to a new utxo
Trait Implementations§
source§impl Clone for OutputStrategy
impl Clone for OutputStrategy
source§fn clone(&self) -> OutputStrategy
fn clone(&self) -> OutputStrategy
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 OutputStrategy
impl Debug for OutputStrategy
source§impl Hash for OutputStrategy
impl Hash for OutputStrategy
source§impl Ord for OutputStrategy
impl Ord for OutputStrategy
source§fn cmp(&self, other: &OutputStrategy) -> Ordering
fn cmp(&self, other: &OutputStrategy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<OutputStrategy> for OutputStrategy
impl PartialEq<OutputStrategy> for OutputStrategy
source§fn eq(&self, other: &OutputStrategy) -> bool
fn eq(&self, other: &OutputStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<OutputStrategy> for OutputStrategy
impl PartialOrd<OutputStrategy> for OutputStrategy
source§fn partial_cmp(&self, other: &OutputStrategy) -> Option<Ordering>
fn partial_cmp(&self, other: &OutputStrategy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OutputStrategy
impl Eq for OutputStrategy
impl StructuralEq for OutputStrategy
impl StructuralPartialEq for OutputStrategy
Auto Trait Implementations§
impl RefUnwindSafe for OutputStrategy
impl Send for OutputStrategy
impl Sync for OutputStrategy
impl Unpin for OutputStrategy
impl UnwindSafe for OutputStrategy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more