Skip to content

Commit 12d8be4

Browse files
committed
Restore background sync
Keeping the background sync probably does not impact performance and good to have as a fallback in case the ping does not work.
1 parent b9ccd0e commit 12d8be4

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ use ldk_node::{
4242
hashes::{Hash, sha256},
4343
secp256k1::PublicKey,
4444
},
45-
config::{Config, EsploraSyncConfig},
45+
config::Config,
4646
generate_entropy_mnemonic,
4747
lightning::ln::channelmanager::PaymentId,
4848
lightning::sign::{KeysManager as LdkKeysManager, NodeSigner, Recipient},
@@ -507,12 +507,7 @@ impl MdkNode {
507507

508508
let mut builder = Builder::from_config(config);
509509
builder.set_network(network);
510-
// Disable background wallet syncing. These nodes are intended to be short
511-
// lived and are kept in sync via other means.
512-
let esplora_sync_config = EsploraSyncConfig {
513-
background_sync_config: None,
514-
};
515-
builder.set_chain_source_esplora(options.esplora_url, Some(esplora_sync_config));
510+
builder.set_chain_source_esplora(options.esplora_url, None);
516511
builder.set_gossip_source_rgs(options.rgs_url);
517512
builder.set_entropy_bip39_mnemonic(mnemonic, None);
518513
let logger_arc = Arc::clone(logger_instance());

0 commit comments

Comments
 (0)