@@ -52,6 +52,7 @@ def create_parser(cls) -> ArgumentParser:
52
52
parser .add_argument ('--auto-hostname' , action = 'store_true' , help = 'Try to discover the hostname automatically' )
53
53
parser .add_argument ('--unsafe-mode' ,
54
54
help = 'Enable unsafe parameters. **NEVER USE IT IN PRODUCTION ENVIRONMENT**' )
55
+ parser .add_argument ('--nano-testnet' , action = 'store_true' , help = 'Connect to Hathor nano-testnet' )
55
56
parser .add_argument ('--testnet' , action = 'store_true' , help = 'Connect to Hathor testnet' )
56
57
parser .add_argument ('--test-mode-tx-weight' , action = 'store_true' ,
57
58
help = 'Reduces tx weight to 1 for testing purposes' )
@@ -359,7 +360,7 @@ def check_python_version(self) -> None:
359
360
360
361
def __init__ (self , * , argv = None ):
361
362
from hathor .cli .run_node_args import RunNodeArgs
362
- from hathor .conf import TESTNET_SETTINGS_FILEPATH
363
+ from hathor .conf import NANO_TESTNET_SETTINGS_FILEPATH , TESTNET_SETTINGS_FILEPATH
363
364
from hathor .conf .get_settings import get_global_settings
364
365
self .log = logger .new ()
365
366
@@ -376,6 +377,8 @@ def __init__(self, *, argv=None):
376
377
os .environ ['HATHOR_CONFIG_YAML' ] = self ._args .config_yaml
377
378
elif self ._args .testnet :
378
379
os .environ ['HATHOR_CONFIG_YAML' ] = TESTNET_SETTINGS_FILEPATH
380
+ elif self ._args .nano_testnet :
381
+ os .environ ['HATHOR_CONFIG_YAML' ] = NANO_TESTNET_SETTINGS_FILEPATH
379
382
380
383
try :
381
384
get_global_settings ()
0 commit comments