Skip to content

Commit

Permalink
rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Sep 30, 2023
1 parent fc84496 commit 3a3eb09
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
6 changes: 3 additions & 3 deletions mutiny-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
29 changes: 0 additions & 29 deletions mutiny-core/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,35 +567,6 @@ impl<S: MutinyStorage> EventHandler<S> {
}
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"
);
}
}
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions mutiny-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 3a3eb09

Please sign in to comment.