Skip to content

Commit

Permalink
Merge pull request #545 from TheCharlatan/takerBobFundingAddress
Browse files Browse the repository at this point in the history
Bug(Wallet): persist funding address secret key for Bob Taker
  • Loading branch information
zkao authored Jul 11, 2022
2 parents e736a0f + 5bda510 commit 8bca4a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/walletd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,16 @@ impl Runtime {
let funding_addr = funding.get_address()?;
let funding_fee = bitcoin::Amount::from_sat(200);
let funding_amount = offer.arbitrating_amount + funding_fee;
self.send_ctl(
endpoints,
ServiceId::Database,
Request::AddressSecretKey(AddressSecretKey {
address: funding_addr.clone(),
secret_key: key_manager
.get_or_derive_bitcoin_key(ArbitratingKeyId::Lock)?
.secret_bytes(),
}),
)?;
debug!(
"{} | Send {} to {}",
swap_id.bright_blue_italic(),
Expand Down

0 comments on commit 8bca4a8

Please sign in to comment.