Skip to content

Commit

Permalink
Wait for taker payment conf instead of funding.
Browse files Browse the repository at this point in the history
  • Loading branch information
artemii235 committed Oct 6, 2023
1 parent 7697d24 commit f197ffb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mm2src/mm2_main/src/lp_swap/maker_swap_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,6 @@ impl<MakerCoin: MmCoin + CoinAssocTypes, TakerCoin: MmCoin + SwapOpsV2> State
maker_coin_start_block: self.maker_coin_start_block,
taker_coin_start_block: self.taker_coin_start_block,
negotiation_data: self.negotiation_data,
taker_funding: self.taker_funding,
funding_spend_preimage,
maker_payment: TransactionIdentifier {
tx_hex: maker_payment.tx_hex().into(),
Expand Down Expand Up @@ -674,7 +673,6 @@ struct MakerPaymentSentFundingSpendGenerated<MakerCoin: CoinAssocTypes, TakerCoi
maker_coin_start_block: u64,
taker_coin_start_block: u64,
negotiation_data: NegotiationData<MakerCoin, TakerCoin>,
taker_funding: TakerCoin::Tx,
funding_spend_preimage: TxPreimageWithSig<TakerCoin>,
maker_payment: TransactionIdentifier,
}
Expand Down Expand Up @@ -746,7 +744,7 @@ impl<MakerCoin: MmCoin + CoinAssocTypes, TakerCoin: MmCoin + SwapOpsV2> State
};

let input = ConfirmPaymentInput {
payment_tx: self.taker_funding.tx_hex(),
payment_tx: taker_payment.tx_hex(),
confirmations: state_machine.conf_settings.taker_coin_confs,
requires_nota: state_machine.conf_settings.taker_coin_nota,
wait_until: state_machine.taker_payment_conf_timeout(),
Expand Down

0 comments on commit f197ffb

Please sign in to comment.