@@ -161,7 +161,6 @@ uniffi::include_scaffolding!("ldk_node");
161
161
// Config defaults
162
162
const DEFAULT_STORAGE_DIR_PATH : & str = "/tmp/ldk_node/" ;
163
163
const DEFAULT_NETWORK : Network = Network :: Bitcoin ;
164
- const DEFAULT_LISTENING_ADDR : & str = "0.0.0.0:9735" ;
165
164
const DEFAULT_CLTV_EXPIRY_DELTA : u32 = 144 ;
166
165
const DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS : u64 = 80 ;
167
166
const DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS : u64 = 30 ;
@@ -204,14 +203,14 @@ const WALLET_KEYS_SEED_LEN: usize = 64;
204
203
/// | Parameter | Value |
205
204
/// |----------------------------------------|------------------|
206
205
/// | `storage_dir_path` | /tmp/ldk_node/ |
207
- /// | `network` | ` Bitcoin |
208
- /// | `listening_address` | 0.0.0.0:9735 |
206
+ /// | `network` | Bitcoin |
207
+ /// | `listening_address` | None |
209
208
/// | `default_cltv_expiry_delta` | 144 |
210
- /// | `onchain_wallet_sync_interval_secs` | 60 |
211
- /// | `wallet_sync_interval_secs` | 20 |
209
+ /// | `onchain_wallet_sync_interval_secs` | 80 |
210
+ /// | `wallet_sync_interval_secs` | 30 |
212
211
/// | `fee_rate_cache_update_interval_secs` | 600 |
213
212
/// | `trusted_peers_0conf` | [] |
214
- /// | `log_level` | ` Debug` |
213
+ /// | `log_level` | Debug |
215
214
///
216
215
pub struct Config {
217
216
/// The path where the underlying LDK and BDK persist their data.
@@ -251,7 +250,7 @@ impl Default for Config {
251
250
Self {
252
251
storage_dir_path : DEFAULT_STORAGE_DIR_PATH . to_string ( ) ,
253
252
network : DEFAULT_NETWORK ,
254
- listening_address : Some ( DEFAULT_LISTENING_ADDR . parse ( ) . unwrap ( ) ) ,
253
+ listening_address : None ,
255
254
default_cltv_expiry_delta : DEFAULT_CLTV_EXPIRY_DELTA ,
256
255
onchain_wallet_sync_interval_secs : DEFAULT_BDK_WALLET_SYNC_INTERVAL_SECS ,
257
256
wallet_sync_interval_secs : DEFAULT_LDK_WALLET_SYNC_INTERVAL_SECS ,
0 commit comments