11import {
2+ BACKEND_HOST ,
23 BACKUPS_SERVER_HOST ,
34 BACKUPS_SERVER_PUBKEY ,
45 BLOCKTANK_HOST ,
@@ -11,10 +12,6 @@ import {
1112 ELECTRUM_REGTEST_PROTO ,
1213 ELECTRUM_REGTEST_SSL_PORT ,
1314 ELECTRUM_REGTEST_TCP_PORT ,
14- ELECTRUM_SIGNET_HOST ,
15- ELECTRUM_SIGNET_PROTO ,
16- ELECTRUM_SIGNET_SSL_PORT ,
17- ELECTRUM_SIGNET_TCP_PORT ,
1815 ENABLE_I18NEXT_DEBUGGER ,
1916 ENABLE_LDK_LOGS ,
2017 ENABLE_MIGRATION_DEBUG ,
@@ -43,8 +40,8 @@ if (!isProtocol(ELECTRUM_REGTEST_PROTO)) {
4340 throw new Error ( `${ ELECTRUM_REGTEST_PROTO } is not a valid protocol.` ) ;
4441}
4542
46- if ( ! isProtocol ( ELECTRUM_SIGNET_PROTO ) ) {
47- throw new Error ( ` ${ ELECTRUM_SIGNET_PROTO } is not a valid protocol.` ) ;
43+ if ( ! BACKEND_HOST ) {
44+ throw new Error ( 'BACKEND_HOST is missing.' ) ;
4845}
4946
5047if ( ! BACKUPS_SERVER_HOST || ! BACKUPS_SERVER_PUBKEY ) {
@@ -53,19 +50,18 @@ if (!BACKUPS_SERVER_HOST || !BACKUPS_SERVER_PUBKEY) {
5350
5451export const __JEST__ = process . env . JEST_WORKER_ID !== undefined ;
5552
56- export const __ENABLE_REDUX_LOGGER__ = ENABLE_REDUX_LOGGER === 'true' ?? true ;
57- export const __ENABLE_MIGRATION_DEBUG__ =
58- ENABLE_MIGRATION_DEBUG === 'true' ?? false ;
53+ export const __ENABLE_REDUX_LOGGER__ = ENABLE_REDUX_LOGGER === 'true' ;
54+ export const __ENABLE_MIGRATION_DEBUG__ = ENABLE_MIGRATION_DEBUG === 'true' ;
5955export const __ENABLE_REDUX_IMMUTABLE_CHECK__ =
6056 __DEV__ && ENABLE_REDUX_IMMUTABLE_CHECK
6157 ? ENABLE_REDUX_IMMUTABLE_CHECK === 'true'
6258 : false ;
6359
64- export const __ENABLE_I18NEXT_DEBUGGER__ =
65- ENABLE_I18NEXT_DEBUGGER === 'true' ?? __DEV__ ;
60+ export const __ENABLE_I18NEXT_DEBUGGER__ = ENABLE_I18NEXT_DEBUGGER === 'true' ;
6661
67- export const __ENABLE_LDK_LOGS__ = ENABLE_LDK_LOGS === 'true' ?? __DEV__ ;
62+ export const __ENABLE_LDK_LOGS__ = ENABLE_LDK_LOGS === 'true' ;
6863
64+ export const __BACKEND_HOST__ = BACKEND_HOST ;
6965export const __BACKUPS_SERVER_HOST__ = BACKUPS_SERVER_HOST ;
7066export const __BACKUPS_SERVER_PUBKEY__ = BACKUPS_SERVER_PUBKEY ;
7167
@@ -79,10 +75,6 @@ export const __ELECTRUM_REGTEST_HOST__ = ELECTRUM_REGTEST_HOST;
7975export const __ELECTRUM_REGTEST_SSL_PORT__ = ELECTRUM_REGTEST_SSL_PORT ;
8076export const __ELECTRUM_REGTEST_TCP_PORT__ = ELECTRUM_REGTEST_TCP_PORT ;
8177export const __ELECTRUM_REGTEST_PROTO__ = ELECTRUM_REGTEST_PROTO ;
82- export const __ELECTRUM_SIGNET_HOST__ = ELECTRUM_SIGNET_HOST ;
83- export const __ELECTRUM_SIGNET_SSL_PORT__ = ELECTRUM_SIGNET_SSL_PORT ;
84- export const __ELECTRUM_SIGNET_TCP_PORT__ = ELECTRUM_SIGNET_TCP_PORT ;
85- export const __ELECTRUM_SIGNET_PROTO__ = ELECTRUM_SIGNET_PROTO ;
8678
8779export const __TREASURE_HUNT_HOST__ = TREASURE_HUNT_HOST ;
8880
0 commit comments