Skip to content

Commit d20239b

Browse files
create_inbound_payment: warn about dup hashes
Leftover feedback from #1177
1 parent 6e0820c commit d20239b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channelmanager.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -5026,8 +5026,9 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
50265026
/// payment secret fetched via this method or [`create_inbound_payment`], and which is at least
50275027
/// the `min_value_msat` provided here, if one is provided.
50285028
///
5029-
/// The [`PaymentHash`] (and corresponding [`PaymentPreimage`]) must be globally unique. This
5030-
/// method may return an Err if another payment with the same payment_hash is still pending.
5029+
/// The [`PaymentHash`] (and corresponding [`PaymentPreimage`]) should be globally unique, though
5030+
/// note that LDK will not stop you from registering duplicate payment hashes for inbound
5031+
/// payments.
50315032
///
50325033
/// `min_value_msat` should be set if the invoice being generated contains a value. Any payment
50335034
/// received for the returned [`PaymentHash`] will be required to be at least `min_value_msat`

0 commit comments

Comments
 (0)