Skip to content

Commit 99ebc3f

Browse files
committed
f Inline Config defaults
1 parent da7e634 commit 99ebc3f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/lib.rs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,12 @@ pub struct Config {
114114

115115
impl Default for Config {
116116
fn default() -> Self {
117-
// Set the config defaults
118-
let storage_dir_path = "/tmp/ldk_node/".to_string();
119-
let esplora_server_url = "https://blockstream.info/api".to_string();
120-
let network = bitcoin::Network::Regtest;
121-
let listening_address = Some("0.0.0.0:9735".to_string());
122-
let default_cltv_expiry_delta = 144;
123-
124117
Self {
125-
storage_dir_path,
126-
esplora_server_url,
127-
network,
128-
listening_address,
129-
default_cltv_expiry_delta,
118+
storage_dir_path: "/tmp/ldk_node/".to_string(),
119+
esplora_server_url: "http://localhost:3002".to_string(),
120+
network: bitcoin::Network::Regtest,
121+
listening_address: Some("0.0.0.0:9735".to_string()),
122+
default_cltv_expiry_delta: 144,
130123
}
131124
}
132125
}

0 commit comments

Comments
 (0)