Skip to content

Commit fd46040

Browse files
committed
f Add comment regarding BOLT11 omission
1 parent 08d566a commit fd46040

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/payment/store.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ where
354354
"We should only ever override payment hash for outbound BOLT 12 payments");
355355
*hash = hash_opt
356356
},
357-
_ => {},
357+
_ => {
358+
// We can omit updating the hash for BOLT11 payments as the payment has will always be known from the beginning.
359+
},
358360
}
359361
}
360362
if let Some(preimage_opt) = update.preimage {

0 commit comments

Comments
 (0)