Simon Volpert minipos / 5689d43
Move exit on missing address code inside the import guard Simon Volpert 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
10241024 if addr != address:
10251025 # Replace the plaintext entry with a ready-to-use tuple
10261026 config['addresses'][config['addresses'].index(address)] = (addr, idx)
1027 if config['addresses'] == [] and 'xpub' not in config:
1028 logging.critical('No receiving addresses available. Please add some receiving addresses or an extended public key to your config file.')
1029 sys.exit(2)
10301027 logging.debug('{} receiving addresse(s) loaded'.format(len(config['addresses'])))
10311028 if 'xpub' in config:
10321029 logging.debug('Current derivation index set to {}'.format(config['index']))
10491046
10501047 # Start the web server
10511048 if __name__ == "__main__":
1049 if config['addresses'] == [] and 'xpub' not in config:
1050 logging.critical('No receiving addresses available. Please add some receiving addresses or an extended public key to your config file.')
1051 sys.exit(2)
10521052 httpd = make_server('', config['port'], minipos)
10531053 logging.info('Serving minipos on port {}...'.format(config['port']))
10541054 try: