Function bdk_wallet::coin_selection::decide_change
source ยท pub fn decide_change(
remaining_amount: u64,
fee_rate: FeeRate,
drain_script: &Script
) -> Excess
Expand description
Decide if change can be created
remaining_amount
: the amount in which the selected coins exceed the target amountfee_rate
: required fee rate for the current selectiondrain_script
: script to consider change creation