File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1940,7 +1940,7 @@ impl Node {
19401940 /// For example, you could retrieve all stored outbound payments as follows:
19411941 /// ```
19421942 /// # use ldk_node::Builder;
1943- /// # use ldk_node::config::Config;
1943+ /// # use ldk_node::config::{ Config, HRNResolverConfig} ;
19441944 /// # use ldk_node::payment::PaymentDirection;
19451945 /// # use ldk_node::bitcoin::Network;
19461946 /// # use ldk_node::entropy::{generate_entropy_mnemonic, NodeEntropy};
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ mod common;
1212use std:: collections:: HashMap ;
1313
1414use ldk_node:: entropy:: NodeEntropy ;
15+ use ldk_node:: config:: { Config , HRNResolverConfig } ;
1516use ldk_node:: Builder ;
1617use rand:: RngCore ;
1718
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ use std::collections::HashMap;
1414use ldk_node:: Builder ;
1515use ldk_node:: { entropy:: NodeEntropy , Builder } ;
1616use ldk_node_070:: lightning:: util:: config;
17+ use ldk_node:: config:: { Config , HRNResolverConfig } ;
1718use rand:: { rng, Rng , RngCore } ;
1819
1920#[ tokio:: test( flavor = "multi_thread" , worker_threads = 1 ) ]
@@ -32,12 +33,7 @@ async fn vss_v0_schema_backwards_compatibility() {
3233
3334 // Setup a v0.6.2 `Node` persisted with the v0 scheme.
3435 let ( old_balance, old_node_id) = {
35- let mut config = ldk_node_062:: Config :: default ( ) ;
36- config. hrn_config . resolution_config = HRNResolverConfig :: Dns {
37- dns_server_address : "8.8.8.8:53" . to_string ( ) ,
38- enable_hrn_resolution_service : false ,
39- } ;
40- let mut builder_old = ldk_node_062:: Builder :: from_config ( config) ;
36+ let mut builder_old = ldk_node_062:: Builder :: new ( ) ;
4137 builder_old. set_network ( bitcoin:: Network :: Regtest ) ;
4238 builder_old. set_storage_dir_path ( storage_path. clone ( ) ) ;
4339 builder_old. set_entropy_seed_bytes ( seed_bytes) ;
You can’t perform that action at this time.
0 commit comments