Skip to content

Commit 56167ce

Browse files
committed
Move Esplora sync logic to a EsploraChainSource type
We refactor our `ChainSource` logic and move out the Esplora code into a new object.
1 parent 5afe490 commit 56167ce

File tree

3 files changed

+403
-358
lines changed

3 files changed

+403
-358
lines changed

src/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
66
// accordance with one or both of these licenses.
77

8-
use crate::chain::{ChainSource, DEFAULT_ESPLORA_SERVER_URL};
8+
use crate::chain::ChainSource;
99
use crate::config::{
1010
default_user_config, may_announce_channel, AnnounceError, BitcoindRestClientConfig, Config,
11-
ElectrumSyncConfig, EsploraSyncConfig, DEFAULT_LOG_FILENAME, DEFAULT_LOG_LEVEL,
12-
WALLET_KEYS_SEED_LEN,
11+
ElectrumSyncConfig, EsploraSyncConfig, DEFAULT_ESPLORA_SERVER_URL, DEFAULT_LOG_FILENAME,
12+
DEFAULT_LOG_LEVEL, WALLET_KEYS_SEED_LEN,
1313
};
1414

1515
use crate::connection::ConnectionManager;

0 commit comments

Comments
 (0)