From c732ede81d41a830fcfe89e9740039e8b270276f Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 26 Jun 2018 11:46:51 +0200 Subject: [PATCH] disable lightning on mainnet --- run_electrum | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run_electrum b/run_electrum index 8e998465..ebb29ca9 100755 --- a/run_electrum +++ b/run_electrum @@ -397,9 +397,8 @@ if __name__ == '__main__': constants.set_regtest() elif config.get('simnet'): constants.set_simnet() - - if config.get('simnet'): - constants.set_simnet() + else: + raise Exception('lightning branch not available on mainnet') # run non-RPC commands separately if cmdname in ['create', 'restore']: