darkfi_money_contract::client::transfer_v1

Function select_coins

Source
pub fn select_coins(
    coins: Vec<OwnCoin>,
    min_value: u64,
) -> Result<(Vec<OwnCoin>, u64)>
Expand description

Select coins from coins of at least min_value in total. Different strategies can be used. This function uses the dumb strategy of selecting coins until we reach min_value.