diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 3306004a1b..bd43ae385e 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -10894,7 +10894,7 @@ where match response { Ok(invoice) => { - let nonce = nonce.unwrap_or_else(|| Nonce::from_entropy_source(&*self.entropy_source)); + let nonce = Nonce::from_entropy_source(&*self.entropy_source); let hmac = signer::hmac_for_payment_hash(payment_hash, nonce, expanded_key); let context = MessageContext::Offers(OffersContext::InboundPayment { payment_hash, nonce, hmac }); Some((OffersMessage::Invoice(invoice), responder.respond_with_reply_path(context)))