From 5bda5103237d849385fbeb18e86e6a085c9a4717 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Fri, 8 Jul 2022 12:11:51 +0200 Subject: [PATCH] Bug(Wallet): persist funding address secret key for Bob Taker --- src/walletd/runtime.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/walletd/runtime.rs b/src/walletd/runtime.rs index 0aae50d6a..b7323a7ac 100644 --- a/src/walletd/runtime.rs +++ b/src/walletd/runtime.rs @@ -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(),