Skip to content

Commit 03541a4

Browse files
committed
f: Always use new nonce for sent Invoice
1 parent b75dbe1 commit 03541a4

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
@@ -10894,7 +10894,7 @@ where
1089410894

1089510895
match response {
1089610896
Ok(invoice) => {
10897-
let nonce = nonce.unwrap_or_else(|| Nonce::from_entropy_source(&*self.entropy_source));
10897+
let nonce = Nonce::from_entropy_source(&*self.entropy_source);
1089810898
let hmac = signer::hmac_for_payment_hash(payment_hash, nonce, expanded_key);
1089910899
let context = MessageContext::Offers(OffersContext::InboundPayment { payment_hash, nonce, hmac });
1090010900
Some((OffersMessage::Invoice(invoice), responder.respond_with_reply_path(context)))

0 commit comments

Comments
 (0)