@@ -8,7 +8,7 @@ use crate::error::Error;
88use crate :: liquidity:: LiquiditySource ;
99use crate :: logger:: { log_error, log_info, FilesystemLogger , Logger } ;
1010use crate :: payment:: payment_store:: {
11- LSPFeeLimits , PaymentDetails , PaymentDirection , PaymentStatus , PaymentStore ,
11+ LSPFeeLimits , PaymentDetails , PaymentDirection , PaymentKind , PaymentStatus , PaymentStore ,
1212} ;
1313use crate :: peer_store:: { PeerInfo , PeerStore } ;
1414use crate :: types:: { ChannelManager , KeysManager } ;
@@ -103,6 +103,7 @@ impl Bolt11Payment {
103103 log_info ! ( self . logger, "Initiated sending {}msat to {}" , amt_msat, payee_pubkey) ;
104104
105105 let payment = PaymentDetails {
106+ kind : Some ( PaymentKind :: Bolt11 ) ,
106107 preimage : None ,
107108 hash : payment_hash,
108109 secret : payment_secret,
@@ -121,6 +122,7 @@ impl Bolt11Payment {
121122 RetryableSendFailure :: DuplicatePayment => Err ( Error :: DuplicatePayment ) ,
122123 _ => {
123124 let payment = PaymentDetails {
125+ kind : Some ( PaymentKind :: Bolt11 ) ,
124126 preimage : None ,
125127 hash : payment_hash,
126128 secret : payment_secret,
@@ -209,6 +211,7 @@ impl Bolt11Payment {
209211 ) ;
210212
211213 let payment = PaymentDetails {
214+ kind : Some ( PaymentKind :: Bolt11 ) ,
212215 hash : payment_hash,
213216 preimage : None ,
214217 secret : Some ( * payment_secret) ,
@@ -228,6 +231,7 @@ impl Bolt11Payment {
228231 RetryableSendFailure :: DuplicatePayment => Err ( Error :: DuplicatePayment ) ,
229232 _ => {
230233 let payment = PaymentDetails {
234+ kind : Some ( PaymentKind :: Bolt11 ) ,
231235 hash : payment_hash,
232236 preimage : None ,
233237 secret : Some ( * payment_secret) ,
@@ -288,6 +292,7 @@ impl Bolt11Payment {
288292
289293 let payment_hash = PaymentHash ( invoice. payment_hash ( ) . to_byte_array ( ) ) ;
290294 let payment = PaymentDetails {
295+ kind : Some ( PaymentKind :: Bolt11 ) ,
291296 hash : payment_hash,
292297 preimage : None ,
293298 secret : Some ( invoice. payment_secret ( ) . clone ( ) ) ,
@@ -414,6 +419,7 @@ impl Bolt11Payment {
414419 max_proportional_opening_fee_ppm_msat : lsp_prop_opening_fee,
415420 } ) ;
416421 let payment = PaymentDetails {
422+ kind : Some ( PaymentKind :: Bolt11 ) ,
417423 hash : payment_hash,
418424 preimage : None ,
419425 secret : Some ( invoice. payment_secret ( ) . clone ( ) ) ,
0 commit comments