From 46e10ba50bf14dc081a750cfed20acd2c99790db Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Fri, 14 Jun 2024 12:31:40 +0700 Subject: [PATCH] chore: remove redundant preimage update on spontaneous payment --- src/event.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/event.rs b/src/event.rs index f5f7ac21e..f17e9f63e 100644 --- a/src/event.rs +++ b/src/event.rs @@ -601,7 +601,7 @@ where Err(e) => { log_error!( self.logger, - "Failed to insert payment with hash {}: {}", + "Failed to insert spontaneous payment with hash {}: {}", hex_utils::to_string(&payment_hash.0), e ); @@ -677,9 +677,8 @@ where ); return; }, - PaymentPurpose::SpontaneousPayment(preimage) => { + PaymentPurpose::SpontaneousPayment(_) => { let update = PaymentDetailsUpdate { - preimage: Some(Some(preimage)), status: Some(PaymentStatus::Succeeded), ..PaymentDetailsUpdate::new(payment_id) };