We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75dbe1 commit 03541a4Copy full SHA for 03541a4
lightning/src/ln/channelmanager.rs
@@ -10894,7 +10894,7 @@ where
10894
10895
match response {
10896
Ok(invoice) => {
10897
- let nonce = nonce.unwrap_or_else(|| Nonce::from_entropy_source(&*self.entropy_source));
+ let nonce = Nonce::from_entropy_source(&*self.entropy_source);
10898
let hmac = signer::hmac_for_payment_hash(payment_hash, nonce, expanded_key);
10899
let context = MessageContext::Offers(OffersContext::InboundPayment { payment_hash, nonce, hmac });
10900
Some((OffersMessage::Invoice(invoice), responder.respond_with_reply_path(context)))
0 commit comments