Skip to content

Commit 1a4c496

Browse files
committed
f: Always use new nonce for sent Invoice
1 parent a3d3c8f commit 1a4c496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10928,7 +10928,7 @@ where
1092810928

1092910929
match response {
1093010930
Ok(invoice) => {
10931-
let nonce = nonce.unwrap_or_else(|| Nonce::from_entropy_source(&*self.entropy_source));
10931+
let nonce = Nonce::from_entropy_source(&*self.entropy_source);
1093210932
let hmac = payment_hash.hmac_for_offer_payment(nonce, expanded_key);
1093310933
let context = MessageContext::Offers(OffersContext::InboundPayment { payment_hash, nonce, hmac });
1093410934
Some((OffersMessage::Invoice(invoice), responder.respond_with_reply_path(context)))

0 commit comments

Comments
 (0)