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 {
849
849
}
850
850
851
851
/// 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" ) ]
852
866
pub fn spontaneous_payment ( & self ) -> Arc < SpontaneousPaymentHandler > {
853
867
Arc :: new ( SpontaneousPaymentHandler :: new (
854
868
Arc :: clone ( & self . runtime ) ,
You can’t perform that action at this time.
0 commit comments