From c54bf934f04e764065edcb70ff3aaa79d4cfcdb2 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Mon, 11 Sep 2023 16:55:49 +0200 Subject: [PATCH] Account for BOLT12 changes --- src/event.rs | 1 + src/wallet.rs | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/event.rs b/src/event.rs index f33b231fe..f06bc7d79 100644 --- a/src/event.rs +++ b/src/event.rs @@ -780,6 +780,7 @@ where LdkEvent::DiscardFunding { .. } => {} LdkEvent::HTLCIntercepted { .. } => {} LdkEvent::BumpTransaction(_) => {} + LdkEvent::InvoiceRequestFailed { .. } => {} } } } diff --git a/src/wallet.rs b/src/wallet.rs index de4fd38c9..561e92dab 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -440,6 +440,18 @@ where fn sign_gossip_message(&self, msg: UnsignedGossipMessage<'_>) -> Result { self.inner.sign_gossip_message(msg) } + + fn sign_bolt12_invoice( + &self, invoice: &lightning::offers::invoice::UnsignedBolt12Invoice, + ) -> Result { + self.inner.sign_bolt12_invoice(invoice) + } + + fn sign_bolt12_invoice_request( + &self, invoice_request: &lightning::offers::invoice_request::UnsignedInvoiceRequest, + ) -> Result { + self.inner.sign_bolt12_invoice_request(invoice_request) + } } impl EntropySource for WalletKeysManager