Function tuxedo_template_wallet::sync::get_arbitrary_unspent_set
source · pub(crate) fn get_arbitrary_unspent_set(
db: &Db,
target: u128
) -> Result<Option<Vec<OutputRef>>>
Expand description
Picks an arbitrary set of unspent outputs from the database for spending. The set’s token values must add up to at least the specified target value.
The return value is None if the total value of the database is less than the target It is Some(Vec![…]) when it is possible