From 216afe4457633272881750d8de43c2b5f58000ec Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 26 Jun 2018 11:46:51 +0200 Subject: [PATCH] disable lightning on mainnet --- electrum | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/electrum b/electrum index 033f72b5..4b2b0c34 100755 --- a/electrum +++ b/electrum @@ -403,9 +403,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']: