File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -849,6 +849,20 @@ impl Node {
849849 }
850850
851851 /// Returns a payment handler allowing to send spontaneous ("keysend") payments.
852+ #[ cfg( not( feature = "uniffi" ) ) ]
853+ pub fn spontaneous_payment ( & self ) -> SpontaneousPaymentHandler {
854+ SpontaneousPaymentHandler :: new (
855+ Arc :: clone ( & self . runtime ) ,
856+ Arc :: clone ( & self . channel_manager ) ,
857+ Arc :: clone ( & self . keys_manager ) ,
858+ Arc :: clone ( & self . payment_store ) ,
859+ Arc :: clone ( & self . config ) ,
860+ Arc :: clone ( & self . logger ) ,
861+ )
862+ }
863+
864+ /// Returns a payment handler allowing to send spontaneous ("keysend") payments.
865+ #[ cfg( feature = "uniffi" ) ]
852866 pub fn spontaneous_payment ( & self ) -> Arc < SpontaneousPaymentHandler > {
853867 Arc :: new ( SpontaneousPaymentHandler :: new (
854868 Arc :: clone ( & self . runtime ) ,
You can’t perform that action at this time.
0 commit comments