Skip to content

Commit 9700060

Browse files
committed
Move Esplora default server out of Config grouping
1 parent 0cf50f0 commit 9700060

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ const DEFAULT_STORAGE_DIR_PATH: &str = "/tmp/ldk_node/";
172172
const DEFAULT_NETWORK: Network = Network::Bitcoin;
173173
const DEFAULT_LISTENING_ADDR: &str = "0.0.0.0:9735";
174174
const DEFAULT_CLTV_EXPIRY_DELTA: u32 = 144;
175-
const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/api";
176175
const DEFAULT_LOG_LEVEL: LogLevel = LogLevel::Debug;
177176

178177
// The 'stop gap' parameter used by BDK's wallet sync. This seems to configure the threshold
@@ -182,6 +181,9 @@ const BDK_CLIENT_STOP_GAP: usize = 20;
182181
// The number of concurrent requests made against the API provider.
183182
const BDK_CLIENT_CONCURRENCY: u8 = 8;
184183

184+
// The default Esplora server we're using.
185+
const DEFAULT_ESPLORA_SERVER_URL: &str = "https://blockstream.info/api";
186+
185187
// The timeout after which we abandon retrying failed payments.
186188
const LDK_PAYMENT_RETRY_TIMEOUT: Duration = Duration::from_secs(10);
187189

0 commit comments

Comments
 (0)