Skip to content

Commit

Permalink
cli: account for fees in doing coinselect
Browse files Browse the repository at this point in the history
Closes #13
  • Loading branch information
dr-orlovsky committed Mar 24, 2024
1 parent 465ceef commit 78e0c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl<O: DescriptorOpts> Exec for Args<BpCommand, O> {
});
let coins: Vec<_> = match total_amount {
Ok(sats) if sats > Sats::ZERO => {
runtime.wallet().coinselect(sats, coinselect::all).collect()
runtime.wallet().coinselect(sats + *fee, coinselect::all).collect()
}
_ => {
eprintln!(
Expand Down

0 comments on commit 78e0c94

Please sign in to comment.