mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-26 17:34:30 +01:00
Update boltz-client (#338)
This commit is contained in:
@@ -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(),
|
||||
)?),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user