Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit

Permalink
Set last updated date for federation payments
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyRonning committed Apr 26, 2024
1 parent 7b2a660 commit b303c50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mutiny-core/src/federation.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::utils::{convert_from_fedimint_invoice, convert_to_fedimint_invoice, spawn};
use crate::utils::{convert_from_fedimint_invoice, convert_to_fedimint_invoice, now, spawn};
use crate::{
error::{MutinyError, MutinyStorageError},
event::PaymentInfo,
Expand Down Expand Up @@ -730,7 +730,8 @@ fn maybe_update_after_checking_fedimint<S: MutinyStorage>(
log_debug!(logger, "Saving updated payment");
let hash = updated_invoice.payment_hash.into_32();
let inbound = updated_invoice.inbound;
let payment_info = PaymentInfo::from(updated_invoice);
let mut payment_info = PaymentInfo::from(updated_invoice);
payment_info.last_update = now().as_secs();
persist_payment_info(&storage, &hash, &payment_info, inbound)?;
}
HTLCStatus::Pending | HTLCStatus::InFlight => (),
Expand Down

0 comments on commit b303c50

Please sign in to comment.