Skip to content

Commit

Permalink
Merge pull request #251 from TheCharlatan/bobMakerFundingMessage
Browse files Browse the repository at this point in the history
Add funding message for bob maker
  • Loading branch information
zkao authored Nov 29, 2021
2 parents 6c00d19 + efea467 commit 04b951f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/walletd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,12 @@ impl Runtime {
if self.wallets.get(&swap_id).is_none() {
let funding = create_funding(&mut key_manager, offer.network)?;
let funding_addr = funding.get_address()?;
let funding_fee = 150;
let funding_amount = offer.arbitrating_amount.as_sat() + funding_fee;
info!(
"Bob, please send Btc to address: {}",
&funding_addr.bright_yellow_bold()
"Send {} sats to address: {}",
funding_amount.bright_green_bold(),
funding_addr.addr(),
);
info!("Loading {}", "Wallet::Bob".bright_yellow());
if let request::Commit::AliceParameters(remote_commit) =
Expand Down

0 comments on commit 04b951f

Please sign in to comment.