diff --git a/mutiny-core/Cargo.toml b/mutiny-core/Cargo.toml index 52f589d41..53d8babcd 100644 --- a/mutiny-core/Cargo.toml +++ b/mutiny-core/Cargo.toml @@ -26,9 +26,9 @@ serde = { version = "^1.0", features = ["derive"] } serde_json = { version = "^1.0" } uuid = { version = "1.1.2", features = ["v4"] } esplora-client = { version = "0.5", default-features = false } -lightning = { version = "0.0.117-alpha2", default-features = false, features = ["max_level_trace", "grind_signatures", "no-std"] } -lightning-invoice = { version = "0.25.0-alpha2", default-features = false, features = ["no-std", "serde"] } -lightning-rapid-gossip-sync = { version = "0.0.117-alpha2", default-features = false, features = ["no-std"] } +lightning = { version = "0.0.117-rc1", default-features = false, features = ["max_level_trace", "grind_signatures", "no-std"] } +lightning-invoice = { version = "0.25.0-rc1", default-features = false, features = ["no-std", "serde"] } +lightning-rapid-gossip-sync = { version = "0.0.117-rc1", default-features = false, features = ["no-std"] } chrono = "0.4.22" futures-util = { version = "0.3", default-features = false } reqwest = { version = "0.11", default-features = false, features = ["json"] } diff --git a/mutiny-core/src/event.rs b/mutiny-core/src/event.rs index f4c7535e2..3652ea196 100644 --- a/mutiny-core/src/event.rs +++ b/mutiny-core/src/event.rs @@ -567,35 +567,6 @@ impl EventHandler { } Event::HTLCIntercepted { .. } => {} Event::BumpTransaction(event) => self.bump_tx_event_handler.handle_event(&event), - Event::InvoiceRequestFailed { payment_id } => { - match self - .persister - .read_payment_info(&payment_id.0, false, &self.logger) - { - Some(mut saved_payment_info) => { - saved_payment_info.status = HTLCStatus::Failed; - saved_payment_info.last_update = crate::utils::now().as_secs(); - match self.persister.persist_payment_info( - &payment_id.0, - &saved_payment_info, - false, - ) { - Ok(_) => (), - Err(e) => log_error!( - self.logger, - "ERROR: could not persist payment info: {e}" - ), - } - } - None => { - // we failed in a payment that we didn't have saved? ... - log_warn!( - self.logger, - "WARN: payment failed but we did not have it stored" - ); - } - } - } } } diff --git a/mutiny-wasm/Cargo.toml b/mutiny-wasm/Cargo.toml index 2c07b3e58..0480c7ec6 100644 --- a/mutiny-wasm/Cargo.toml +++ b/mutiny-wasm/Cargo.toml @@ -24,8 +24,8 @@ wasm-bindgen-futures = "0.4.33" serde = { version = "^1.0", features = ["derive"] } serde_json = { version = "^1.0" } bitcoin = { version = "0.29.2", default-features = false, features = ["serde", "secp-recovery", "rand"] } -lightning = { version = "0.0.117-alpha2", default-features = false, features = ["no-std"] } -lightning-invoice = { version = "0.25.0-alpha2", default-features = false, features = ["no-std"] } +lightning = { version = "0.0.117-rc1", default-features = false, features = ["no-std"] } +lightning-invoice = { version = "0.25.0-rc1", default-features = false, features = ["no-std"] } thiserror = "1.0" instant = { version = "0.1", features = ["wasm-bindgen"] } lnurl-rs = { version = "0.2.6", default-features = false }