File tree 1 file changed +8
-3
lines changed
lightning-liquidity/src/lsps2
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 72
72
pending_messages : Arc < MessageQueue > ,
73
73
pending_events : Arc < EventQueue > ,
74
74
per_peer_state : RwLock < HashMap < PublicKey , Mutex < PeerState > > > ,
75
- _config : LSPS2ClientConfig ,
75
+ config : LSPS2ClientConfig ,
76
76
}
77
77
78
78
impl < ES : Deref > LSPS2ClientHandler < ES >
@@ -82,17 +82,22 @@ where
82
82
/// Constructs an `LSPS2ClientHandler`.
83
83
pub ( crate ) fn new (
84
84
entropy_source : ES , pending_messages : Arc < MessageQueue > , pending_events : Arc < EventQueue > ,
85
- _config : LSPS2ClientConfig ,
85
+ config : LSPS2ClientConfig ,
86
86
) -> Self {
87
87
Self {
88
88
entropy_source,
89
89
pending_messages,
90
90
pending_events,
91
91
per_peer_state : RwLock :: new ( new_hash_map ( ) ) ,
92
- _config ,
92
+ config ,
93
93
}
94
94
}
95
95
96
+ /// Returns a reference to the used config.
97
+ pub fn config ( & self ) -> & LSPS2ClientConfig {
98
+ & self . config
99
+ }
100
+
96
101
/// Request the channel opening parameters from the LSP.
97
102
///
98
103
/// This initiates the JIT-channel flow that, at the end of it, will have the LSP
You can’t perform that action at this time.
0 commit comments