@@ -148,15 +148,15 @@ impl LdkLiteBuilder {
148
148
/// Sets the used storage directory path.
149
149
///
150
150
/// Default: `/tmp/ldk_lite/`
151
- pub fn storage_dir_path ( & mut self , storage_dir_path : String ) -> & mut Self {
151
+ pub fn set_storage_dir_path ( & mut self , storage_dir_path : String ) -> & mut Self {
152
152
self . config . storage_dir_path = storage_dir_path;
153
153
self
154
154
}
155
155
156
156
/// Sets the Esplora server URL.
157
157
///
158
158
/// Default: `https://blockstream.info/api`
159
- pub fn esplora_server_url ( & mut self , esplora_server_url : String ) -> & mut Self {
159
+ pub fn set_esplora_server_url ( & mut self , esplora_server_url : String ) -> & mut Self {
160
160
self . config . esplora_server_url = esplora_server_url;
161
161
self
162
162
}
@@ -166,7 +166,7 @@ impl LdkLiteBuilder {
166
166
/// Options: `mainnet`/`bitcoin`, `testnet`, `regtest`, `signet`
167
167
///
168
168
/// Default: `testnet`
169
- pub fn network ( & mut self , network : & str ) -> & mut Self {
169
+ pub fn set_network ( & mut self , network : & str ) -> & mut Self {
170
170
self . config . network = match network {
171
171
"mainnet" => bitcoin:: Network :: Bitcoin ,
172
172
"bitcoin" => bitcoin:: Network :: Bitcoin ,
@@ -181,7 +181,7 @@ impl LdkLiteBuilder {
181
181
/// Sets the port on which [`LdkLite`] will listen for incoming network connections.
182
182
///
183
183
/// Default: `9735`
184
- pub fn listening_port ( & mut self , listening_port : u16 ) -> & mut Self {
184
+ pub fn set_listening_port ( & mut self , listening_port : u16 ) -> & mut Self {
185
185
self . config . listening_port = listening_port;
186
186
self
187
187
}
0 commit comments