From 638afd2766ad59271adecd5abac1a5f85461b6b2 Mon Sep 17 00:00:00 2001 From: laruh Date: Tue, 24 Sep 2024 14:43:46 +0700 Subject: [PATCH] UtxoStandardCoin wait_for_maker_payment_spend --- mm2src/coins/utxo/utxo_standard.rs | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/mm2src/coins/utxo/utxo_standard.rs b/mm2src/coins/utxo/utxo_standard.rs index 9a4f69ef4b..7d2030a921 100644 --- a/mm2src/coins/utxo/utxo_standard.rs +++ b/mm2src/coins/utxo/utxo_standard.rs @@ -666,11 +666,20 @@ impl MakerCoinSwapOpsV2 for UtxoStandardCoin { async fn wait_for_maker_payment_spend( &self, - _maker_payment: &Self::Tx, - _from_block: u64, - _wait_until: u64, + maker_payment: &Self::Tx, + from_block: u64, + wait_until: u64, ) -> MmResult { - todo!() + let res = utxo_common::wait_for_output_spend_impl( + self.as_ref(), + maker_payment, + utxo_common::DEFAULT_SWAP_VOUT, + from_block, + wait_until, + 10., + ) + .await?; + Ok(res) } }