Skip to content

Commit 918ff8f

Browse files
committed
Fix locked notes reuse by ensuring retries after blockchain sync
Now, transactions will only be constructed with confirmed, available notes, improving reliability and preventing conflicts.
1 parent d5b1d35 commit 918ff8f

File tree

13 files changed

+209
-305
lines changed

13 files changed

+209
-305
lines changed

mm2src/coins/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ hex = "0.4.2"
5757
http = "0.2"
5858
itertools = { version = "0.10", features = ["use_std"] }
5959
jsonrpc-core = "18.0.0"
60+
jubjub = "0.5.1"
6061
keys = { path = "../mm2_bitcoin/keys" }
6162
lazy_static = "1.4"
6263
libc = "0.2"
@@ -119,7 +120,6 @@ blake2b_simd = "0.5"
119120
ff = "0.8"
120121
futures-util = "0.3"
121122
instant = "0.1.12"
122-
jubjub = "0.5.1"
123123
js-sys = { version = "0.3.27" }
124124
mm2_db = { path = "../mm2_db" }
125125
mm2_metamask = { path = "../mm2_metamask" }

mm2src/coins/lp_coins.rs

-3
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ use std::sync::Arc;
8484
use std::time::Duration;
8585
use std::{fmt, iter};
8686
use utxo_signer::with_key_pair::UtxoSignWithKeyPairError;
87-
use uuid::Uuid;
8887
use zcash_primitives::transaction::Transaction as ZTransaction;
8988
cfg_native! {
9089
use crate::lightning::LightningCoin;
@@ -1203,8 +1202,6 @@ pub trait SwapOps {
12031202

12041203
fn maker_locktime_multiplier(&self) -> f64 { 2.0 }
12051204

1206-
async fn clean_up(&self, _uuid: Uuid) -> MmResult<(), String> { Ok(()) }
1207-
12081205
/// Performs an action on Maker coin payment just before the Taker Swap payment refund begins
12091206
/// Operation on maker coin from taker swap side
12101207
/// Currently lightning specific

0 commit comments

Comments
 (0)