@@ -14,7 +14,6 @@ use crate::fee_estimator::OnchainFeeEstimator;
14
14
use crate :: gossip:: GossipSource ;
15
15
use crate :: io:: sqlite_store:: SqliteStore ;
16
16
use crate :: io:: utils:: { read_node_metrics, write_node_metrics} ;
17
- #[ cfg( any( vss, vss_test) ) ]
18
17
use crate :: io:: vss_store:: VssStore ;
19
18
use crate :: liquidity:: LiquiditySource ;
20
19
use crate :: logger:: { log_error, log_info, FilesystemLogger , Logger } ;
@@ -64,9 +63,7 @@ use bip39::Mnemonic;
64
63
use bitcoin:: secp256k1:: PublicKey ;
65
64
use bitcoin:: { BlockHash , Network } ;
66
65
67
- #[ cfg( any( vss, vss_test) ) ]
68
66
use bitcoin:: bip32:: { ChildNumber , Xpriv } ;
69
- #[ cfg( any( vss, vss_test) ) ]
70
67
use std:: collections:: HashMap ;
71
68
use std:: convert:: TryInto ;
72
69
use std:: default:: Default ;
@@ -76,7 +73,6 @@ use std::path::PathBuf;
76
73
use std:: sync:: atomic:: AtomicBool ;
77
74
use std:: sync:: { Arc , Mutex , RwLock } ;
78
75
use std:: time:: SystemTime ;
79
- #[ cfg( any( vss, vss_test) ) ]
80
76
use vss_client:: headers:: { FixedHeaders , LnurlAuthToJwtProvider , VssHeaderProvider } ;
81
77
82
78
#[ derive( Debug , Clone ) ]
@@ -389,7 +385,6 @@ impl NodeBuilder {
389
385
///
390
386
/// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
391
387
/// [LNURL-auth]: https://github.com/lnurl/luds/blob/luds/04.md
392
- #[ cfg( any( vss, vss_test) ) ]
393
388
pub fn build_with_vss_store (
394
389
& self , vss_url : String , store_id : String , lnurl_auth_server_url : String ,
395
390
fixed_headers : HashMap < String , String > ,
@@ -439,7 +434,6 @@ impl NodeBuilder {
439
434
/// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
440
435
///
441
436
/// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
442
- #[ cfg( any( vss, vss_test) ) ]
443
437
pub fn build_with_vss_store_and_fixed_headers (
444
438
& self , vss_url : String , store_id : String , fixed_headers : HashMap < String , String > ,
445
439
) -> Result < Node , BuildError > {
@@ -459,7 +453,6 @@ impl NodeBuilder {
459
453
/// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
460
454
///
461
455
/// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
462
- #[ cfg( any( vss, vss_test) ) ]
463
456
pub fn build_with_vss_store_and_header_provider (
464
457
& self , vss_url : String , store_id : String , header_provider : Arc < dyn VssHeaderProvider > ,
465
458
) -> Result < Node , BuildError > {
@@ -676,7 +669,6 @@ impl ArcedNodeBuilder {
676
669
///
677
670
/// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
678
671
/// [LNURL-auth]: https://github.com/lnurl/luds/blob/luds/04.md
679
- #[ cfg( any( vss, vss_test) ) ]
680
672
pub fn build_with_vss_store (
681
673
& self , vss_url : String , store_id : String , lnurl_auth_server_url : String ,
682
674
fixed_headers : HashMap < String , String > ,
@@ -700,7 +692,6 @@ impl ArcedNodeBuilder {
700
692
/// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
701
693
///
702
694
/// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
703
- #[ cfg( any( vss, vss_test) ) ]
704
695
pub fn build_with_vss_store_and_fixed_headers (
705
696
& self , vss_url : String , store_id : String , fixed_headers : HashMap < String , String > ,
706
697
) -> Result < Arc < Node > , BuildError > {
@@ -722,7 +713,6 @@ impl ArcedNodeBuilder {
722
713
/// unrecoverable, i.e., if they remain unresolved after internal retries are exhausted.
723
714
///
724
715
/// [VSS]: https://github.com/lightningdevkit/vss-server/blob/main/README.md
725
- #[ cfg( any( vss, vss_test) ) ]
726
716
pub fn build_with_vss_store_and_header_provider (
727
717
& self , vss_url : String , store_id : String , header_provider : Arc < dyn VssHeaderProvider > ,
728
718
) -> Result < Arc < Node > , BuildError > {
@@ -1276,7 +1266,6 @@ fn seed_bytes_from_config(
1276
1266
}
1277
1267
}
1278
1268
1279
- #[ cfg( any( vss, vss_test) ) ]
1280
1269
fn derive_vss_xprv (
1281
1270
config : Arc < Config > , seed_bytes : & [ u8 ; 64 ] , logger : Arc < FilesystemLogger > ,
1282
1271
) -> Result < Xpriv , BuildError > {
0 commit comments