1
1
use std:: collections:: HashSet ;
2
2
use tendermint_light_client_verifier:: types:: UntrustedBlockState ;
3
3
4
+ #[ cfg( not( feature = "production" ) ) ]
5
+ const WHITELIST_FROM_FILE : & str = include_str ! ( "../fixtures/validator_whitelist.txt" ) ;
6
+ #[ cfg( feature = "production" ) ]
7
+ const WHITELIST_FROM_FILE : & str = include_str ! ( "../fixtures/validator_whitelist_prod.txt" ) ;
8
+
9
+ #[ cfg( not( feature = "production" ) ) ]
10
+ const WHITELIST_EMERGENCY_FROM_FILE : & str = include_str ! ( "../fixtures/validator_whitelist.txt" ) ;
11
+ #[ cfg( feature = "production" ) ]
12
+ const WHITELIST_EMERGENCY_FROM_FILE : & str =
13
+ include_str ! ( "../fixtures/validator_whitelist_emergency_prod.txt" ) ;
14
+
4
15
#[ cfg( not( feature = "production" ) ) ]
5
16
pub const VALIDATOR_THRESHOLD : usize = 1 ;
6
17
#[ cfg( not( feature = "production" ) ) ]
@@ -11,16 +22,10 @@ pub const VALIDATOR_THRESHOLD: usize = 5;
11
22
#[ cfg( feature = "production" ) ]
12
23
pub const VALIDATOR_THRESHOLD_EMERGENCY : usize = 11 ;
13
24
14
- #[ cfg( not( feature = "production" ) ) ]
15
25
lazy_static:: lazy_static! {
16
- pub static ref VALIDATOR_WHITELIST : ValidatorList = ValidatorList :: from_str( "../fixtures/validator_whitelist.txt" ) ;
17
- pub static ref VALIDATOR_WHITELIST_EMERGENCY : ValidatorList = ValidatorList :: from_str( "../fixtures/validator_whitelist.txt" ) ;
18
- }
19
26
20
- #[ cfg( feature = "production" ) ]
21
- lazy_static:: lazy_static! {
22
- pub static ref VALIDATOR_WHITELIST : ValidatorList = ValidatorList :: from_str( "../fixtures/validator_whitelist_prod.txt" ) ;
23
- pub static ref VALIDATOR_WHITELIST_EMERGENCY : ValidatorList = ValidatorList :: from_str( "../fixtures/validator_whitelist_emergency_prod.txt" ) ;
27
+ pub static ref VALIDATOR_WHITELIST : ValidatorList = ValidatorList :: from_str( WHITELIST_FROM_FILE ) ;
28
+ pub static ref VALIDATOR_WHITELIST_EMERGENCY : ValidatorList = ValidatorList :: from_str( WHITELIST_EMERGENCY_FROM_FILE ) ;
24
29
}
25
30
26
31
#[ derive( Debug , Clone ) ]
0 commit comments