Skip to content

Commit a5504a1

Browse files
author
Conor Okus
committed
Electrum/Esplora available in transaction-sync
1 parent 5787ac6 commit a5504a1

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

docs/building-a-node-with-ldk/setting-up-a-channel-manager.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,24 +1130,9 @@ LDK's `lightning_block_sync` sample crate as in the example above: the high-leve
11301130
3. For each object, reconnect blocks starting from the common ancestor until it gets to your best known chain tip using `channel_manager.as_Listen().block_connected(..)` and/or `channel_monitor.block_connected(..)`.
11311131
4. Call `channel_manager.chain_sync_completed(..)` to complete the initial sync process.
11321132
1133-
**Esplora**
1134-
1135-
Alternatively, you can use LDK's `lightning-transaction-sync` crate. This provides utilities for syncing LDK via the transaction-based `Confirm` interface.
1136-
11371133
**Electrum/Esplora**
11381134
1139-
Otherwise, you can use LDK's `Confirm` interface directly as in the examples above. The high-level steps are as follows:
1140-
1141-
1. Tell LDK about relevant confirmed and unconfirmed transactions.
1142-
2. Tell LDK what your best known block header and height is.
1143-
3. Call `channel_manager_constructor.chain_sync_completed(..)` to complete the initial sync process.
1144-
1145-
**References:** [Rust `Confirm` docs](https://docs.rs/lightning/*/lightning/chain/trait.Confirm.html), [Rust `Listen` docs](https://docs.rs/lightning/*/lightning/chain/trait.Listen.html), [Rust `lightning_block_sync` crate docs](https://docs.rs/lightning-block-sync/*/lightning_block_sync/), [Rust `lightning_transaction_sync` crate docs](https://docs.rs/lightning-transaction-sync/*/lightning_transaction_sync/)
1146-
1147-
**Dependencies:** `ChannelManager`, `ChainMonitor`, `ChannelMonitor`s
1148-
1149-
- If providing providing full blocks or BIP 157/158: set of `ChannelMonitor`s
1150-
- If using Electrum: `ChainMonitor`
1135+
Alternatively, you can use LDK's `lightning-transaction-sync` crate. This provides utilities for syncing LDK via the transaction-based `Confirm` interface.
11511136

11521137
### Optional: Initialize `P2PGossipSync or RapidGossipSync`
11531138

0 commit comments

Comments
 (0)