@@ -14,7 +14,6 @@ use crate::fee_estimator::OnchainFeeEstimator;
1414use crate :: gossip:: GossipSource ;
1515use crate :: io:: sqlite_store:: SqliteStore ;
1616use crate :: io:: utils:: { read_node_metrics, write_node_metrics} ;
17- #[ cfg( any( vss, vss_test) ) ]
1817use crate :: io:: vss_store:: VssStore ;
1918use crate :: liquidity:: LiquiditySource ;
2019use crate :: logger:: { log_error, log_info, FilesystemLogger , Logger } ;
@@ -64,9 +63,7 @@ use bip39::Mnemonic;
6463use bitcoin:: secp256k1:: PublicKey ;
6564use bitcoin:: { BlockHash , Network } ;
6665
67- #[ cfg( any( vss, vss_test) ) ]
6866use bitcoin:: bip32:: { ChildNumber , Xpriv } ;
69- #[ cfg( any( vss, vss_test) ) ]
7067use std:: collections:: HashMap ;
7168use std:: convert:: TryInto ;
7269use std:: default:: Default ;
@@ -76,7 +73,6 @@ use std::path::PathBuf;
7673use std:: sync:: atomic:: AtomicBool ;
7774use std:: sync:: { Arc , Mutex , RwLock } ;
7875use std:: time:: SystemTime ;
79- #[ cfg( any( vss, vss_test) ) ]
8076use vss_client:: headers:: { FixedHeaders , LnurlAuthToJwtProvider , VssHeaderProvider } ;
8177
8278#[ derive( Debug , Clone ) ]
@@ -389,7 +385,6 @@ impl NodeBuilder {
389385 ///
390386 /// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
391387 /// [LNURL-auth]: https://github.com/lnurl/luds/blob/luds/04.md
392- #[ cfg( any( vss, vss_test) ) ]
393388 pub fn build_with_vss_store (
394389 & self , vss_url : String , store_id : String , lnurl_auth_server_url : String ,
395390 fixed_headers : HashMap < String , String > ,
@@ -439,7 +434,6 @@ impl NodeBuilder {
439434 /// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
440435 ///
441436 /// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
442- #[ cfg( any( vss, vss_test) ) ]
443437 pub fn build_with_vss_store_and_fixed_headers (
444438 & self , vss_url : String , store_id : String , fixed_headers : HashMap < String , String > ,
445439 ) -> Result < Node , BuildError > {
@@ -459,7 +453,6 @@ impl NodeBuilder {
459453 /// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
460454 ///
461455 /// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
462- #[ cfg( any( vss, vss_test) ) ]
463456 pub fn build_with_vss_store_and_header_provider (
464457 & self , vss_url : String , store_id : String , header_provider : Arc < dyn VssHeaderProvider > ,
465458 ) -> Result < Node , BuildError > {
@@ -676,7 +669,6 @@ impl ArcedNodeBuilder {
676669 ///
677670 /// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
678671 /// [LNURL-auth]: https://github.com/lnurl/luds/blob/luds/04.md
679- #[ cfg( any( vss, vss_test) ) ]
680672 pub fn build_with_vss_store (
681673 & self , vss_url : String , store_id : String , lnurl_auth_server_url : String ,
682674 fixed_headers : HashMap < String , String > ,
@@ -700,7 +692,6 @@ impl ArcedNodeBuilder {
700692 /// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
701693 ///
702694 /// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
703- #[ cfg( any( vss, vss_test) ) ]
704695 pub fn build_with_vss_store_and_fixed_headers (
705696 & self , vss_url : String , store_id : String , fixed_headers : HashMap < String , String > ,
706697 ) -> Result < Arc < Node > , BuildError > {
@@ -722,7 +713,6 @@ impl ArcedNodeBuilder {
722713 /// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
723714 ///
724715 /// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
725- #[ cfg( any( vss, vss_test) ) ]
726716 pub fn build_with_vss_store_and_header_provider (
727717 & self , vss_url : String , store_id : String , header_provider : Arc < dyn VssHeaderProvider > ,
728718 ) -> Result < Arc < Node > , BuildError > {
@@ -1276,7 +1266,6 @@ fn seed_bytes_from_config(
12761266 }
12771267}
12781268
1279- #[ cfg( any( vss, vss_test) ) ]
12801269fn derive_vss_xprv (
12811270 config : Arc < Config > , seed_bytes : & [ u8 ; 64 ] , logger : Arc < FilesystemLogger > ,
12821271) -> Result < Xpriv , BuildError > {
0 commit comments