mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-10-12 13:30:58 -04:00
Improve error messages when determining BTC amount to be swapped
This commit is contained in:
parent
4138039ea0
commit
1aa6d177bf
2 changed files with 7 additions and 3 deletions
|
@ -155,7 +155,7 @@ impl Wallet {
|
|||
tx_builder.set_single_recipient(dummy_script);
|
||||
tx_builder.drain_wallet();
|
||||
tx_builder.fee_rate(self.select_feerate());
|
||||
let (_, details) = tx_builder.finish()?;
|
||||
let (_, details) = tx_builder.finish().context("Failed to build transaction")?;
|
||||
|
||||
let max_giveable = details.sent - details.fees;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue