Skip to content

Commit

Permalink
f Update for shorter from_X constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Feb 12, 2024
1 parent e10ed85 commit e480ef7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use std::str::FromStr;

fn main() {
let mnemonic = generate_entropy_mnemonic();
let mut builder = Builder::from_entropy_bip39_mnemonic(mnemonic, None, None);
let mut builder = Builder::from_mnemonic(mnemonic, None, None);
builder.set_network(Network::Testnet);
builder.set_esplora_server("https://blockstream.info/testnet/api".to_string());
builder.set_gossip_source_rgs("https://rapidsync.lightningdevkit.org/testnet/snapshot".to_string());
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
//!
//! fn main() {
//! let mnemonic = generate_entropy_mnemonic();
//! let mut builder = Builder::from_entropy_bip39_mnemonic(mnemonic, None, None);
//! let mut builder = Builder::from_mnemonic(mnemonic, None, None);
//! builder.set_network(Network::Testnet);
//! builder.set_esplora_server("https://blockstream.info/testnet/api".to_string());
//! builder.set_gossip_source_rgs("https://rapidsync.lightningdevkit.org/testnet/snapshot".to_string());
Expand Down Expand Up @@ -1565,7 +1565,7 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
/// # let mut config = Config::default();
/// # config.network = Network::Regtest;
/// # config.storage_dir_path = "/tmp/ldk_node_test/".to_string();
/// # let builder = Builder::from_entropy_bip39_mnemonic(mnemonic, None, Some(config));
/// # let builder = Builder::from_mnemonic(mnemonic, None, Some(config));
/// # let node = builder.build().unwrap();
/// node.list_payments_with_filter(|p| p.direction == PaymentDirection::Outbound);
/// ```
Expand Down

0 comments on commit e480ef7

Please sign in to comment.