Skip to content

Commit 7a5850d

Browse files
committed
Expose set_paths_to_static_invoice_server
1 parent e4a87d4 commit 7a5850d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ pub use types::{ChannelDetails, CustomTlvRecord, PeerDetails, UserChannelId};
150150

151151
use logger::{log_debug, log_error, log_info, log_trace, LdkLogger, Logger};
152152

153+
use lightning::blinded_path::message::BlindedMessagePath;
153154
use lightning::chain::BestBlock;
154155
use lightning::events::bump_transaction::Wallet as LdkWallet;
155156
use lightning::impl_writeable_tlv_based;
@@ -1461,6 +1462,14 @@ impl Node {
14611462
Error::PersistenceFailed
14621463
})
14631464
}
1465+
1466+
/// Sets the [`BlindedMessagePath`]s that we will use as an async recipient to interactively build [`Offer`]s with a
1467+
/// static invoice server, so the server can serve [`StaticInvoice`]s to payers on our behalf when we're offline.
1468+
pub fn set_paths_to_static_invoice_server(
1469+
&mut self, paths: Vec<BlindedMessagePath>,
1470+
) -> Result<(), ()> {
1471+
self.channel_manager.set_paths_to_static_invoice_server(paths)
1472+
}
14641473
}
14651474

14661475
impl Drop for Node {

0 commit comments

Comments
 (0)