Update boltz-client (#338)

This commit is contained in:
Ross Savage
2024-06-27 15:49:35 +02:00
committed by GitHub
parent a98ee61242
commit 62022daa85
4 changed files with 11 additions and 9 deletions

View File

@@ -432,12 +432,12 @@ impl ChainSwap {
let our_pubkey = self.get_claim_keypair()?.public_key();
let swap_script = match self.direction {
Direction::Incoming => SwapScriptV2::Liquid(LBtcSwapScriptV2::chain_from_swap_resp(
Side::To,
Side::Claim,
chain_swap_details,
our_pubkey.into(),
)?),
Direction::Outgoing => SwapScriptV2::Bitcoin(BtcSwapScriptV2::chain_from_swap_resp(
Side::To,
Side::Claim,
chain_swap_details,
our_pubkey.into(),
)?),
@@ -450,12 +450,12 @@ impl ChainSwap {
let our_pubkey = self.get_refund_keypair()?.public_key();
let swap_script = match self.direction {
Direction::Incoming => SwapScriptV2::Bitcoin(BtcSwapScriptV2::chain_from_swap_resp(
Side::From,
Side::Lockup,
chain_swap_details,
our_pubkey.into(),
)?),
Direction::Outgoing => SwapScriptV2::Liquid(LBtcSwapScriptV2::chain_from_swap_resp(
Side::From,
Side::Lockup,
chain_swap_details,
our_pubkey.into(),
)?),

View File

@@ -273,12 +273,12 @@ impl BoltzSwapper {
let claim_tx_details = self.client.get_chain_claim_tx_details(&swap.id)?;
match swap.direction {
Direction::Incoming => refund_tx_wrapper.as_bitcoin_tx()?.partial_sig(
Direction::Incoming => refund_tx_wrapper.as_bitcoin_tx()?.partial_sign(
&refund_keypair,
&claim_tx_details.pub_nonce,
&claim_tx_details.transaction_hash,
),
Direction::Outgoing => refund_tx_wrapper.as_liquid_tx()?.partial_sig(
Direction::Outgoing => refund_tx_wrapper.as_liquid_tx()?.partial_sign(
&refund_keypair,
&claim_tx_details.pub_nonce,
&claim_tx_details.transaction_hash,
@@ -670,7 +670,7 @@ impl Swapper for BoltzSwapper {
self.validate_send_swap_preimage(swap_id, &swap.invoice, &claim_tx_response.preimage)?;
let (partial_sig, pub_nonce) = refund_tx.partial_sig(
let (partial_sig, pub_nonce) = refund_tx.partial_sign(
&keypair,
&claim_tx_response.pub_nonce,
&claim_tx_response.transaction_hash,