Skip to content

Commit 5787ac6

Browse files
author
Conor Okus
committed
s/module/crate
1 parent d26a8e8 commit 5787ac6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,11 @@ let persister = MyPersister()
426426

427427
</CodeSwitcher>
428428

429-
<CodeSwitcher :languages="{rust:'Using LDK Sample Filesystem Persistence Module in Rust'}">
429+
<CodeSwitcher :languages="{rust:'Using LDK Sample Filesystem Persistence Crate in Rust'}">
430430
<template v-slot:rust>
431431

432432
```rust
433-
use lightning_persister::FilesystemPersister; // import LDK sample persist module
433+
use lightning_persister::FilesystemPersister; // import LDK sample persist crate
434434

435435
let persister = FilesystemPersister::new(ldk_data_dir_path);
436436
```
@@ -726,7 +726,7 @@ let keysManager = KeysManager(seed: seed, startingTimeSecs: timestampSeconds, st
726726
<template v-slot:rust>
727727
728728
```rust
729-
// Use LDK's sample persister module provided method
729+
// Use LDK's sample persister crate provided method
730730
let mut channel_monitors =
731731
persister.read_channelmonitors(keys_manager.clone()).unwrap();
732732

@@ -1121,7 +1121,7 @@ There are 2 main options for synchronizing to chain on startup:
11211121
**Full Blocks or BIP 157/158**
11221122
11231123
If you are connecting full blocks or using BIP 157/158, then it is recommended to use
1124-
LDK's `lightning_block_sync` sample module as in the example above: the high-level steps that must be done for both `ChannelManager` and each `ChannelMonitor` are as follows:
1124+
LDK's `lightning_block_sync` sample crate as in the example above: the high-level steps that must be done for both `ChannelManager` and each `ChannelMonitor` are as follows:
11251125

11261126
1. Get the last blockhash that each object saw.
11271127
- Receive the latest block hash when through [deserializtion](https://docs.rs/lightning/*/lightning/ln/channelmanager/struct.ChannelManagerReadArgs.html) of the `ChannelManager` via `read()`
@@ -1142,7 +1142,7 @@ Otherwise, you can use LDK's `Confirm` interface directly as in the examples abo
11421142
2. Tell LDK what your best known block header and height is.
11431143
3. Call `channel_manager_constructor.chain_sync_completed(..)` to complete the initial sync process.
11441144
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` module docs](https://docs.rs/lightning-block-sync/*/lightning_block_sync/), [Rust `lightning_transaction_sync` module docs](https://docs.rs/lightning-transaction-sync/*/lightning_transaction_sync/)
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/)
11461146
11471147
**Dependencies:** `ChannelManager`, `ChainMonitor`, `ChannelMonitor`s
11481148

0 commit comments

Comments
 (0)