From: Valentine Wallace Date: Fri, 17 Dec 2021 00:27:13 +0000 (-0800) Subject: create_inbound_payment: warn about dup hashes X-Git-Tag: v0.0.104~1^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d20239bbeb28daf94b8ca34304a0e7c3a12a4808;p=rust-lightning create_inbound_payment: warn about dup hashes Leftover feedback from #1177 --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 612d2df0c..91eab154b 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -5026,8 +5026,9 @@ impl ChannelMana /// payment secret fetched via this method or [`create_inbound_payment`], and which is at least /// the `min_value_msat` provided here, if one is provided. /// - /// The [`PaymentHash`] (and corresponding [`PaymentPreimage`]) must be globally unique. This - /// method may return an Err if another payment with the same payment_hash is still pending. + /// The [`PaymentHash`] (and corresponding [`PaymentPreimage`]) should be globally unique, though + /// note that LDK will not stop you from registering duplicate payment hashes for inbound + /// payments. /// /// `min_value_msat` should be set if the invoice being generated contains a value. Any payment /// received for the returned [`PaymentHash`] will be required to be at least `min_value_msat`