1
0

Allow user to enable lightning in the GUI. Make it a per-wallet setting.

This commit is contained in:
ThomasV
2019-10-13 20:34:38 +02:00
parent a201ed44df
commit 90ce9f195b
12 changed files with 90 additions and 76 deletions

View File

@@ -333,14 +333,6 @@ if __name__ == '__main__':
constants.set_regtest()
elif config.get('simnet'):
constants.set_simnet()
elif config.get('lightning') and not config.get('reckless'):
raise Exception('lightning option not available on mainnet')
if config.get('lightning'):
from electrum.ecc_fast import is_using_fast_ecc
if not is_using_fast_ecc():
raise Exception('libsecp256k1 library not available. '
'Verifying Lightning channels is too computationally expensive without libsecp256k1, aborting.')
cmdname = config.get('cmd')