electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 3c3a59c5176b56a1f774e037c587c32d0f615e49
parent 3314c149f27f4ccd8b5935edb38af49a865c5eeb
Author: bitromortac <bitromortac@protonmail.com>
Date:   Tue, 13 Oct 2020 19:10:01 +0200

cli: remove enable/disable lightning

Diffstat:
Melectrum/commands.py | 11-----------
Melectrum/tests/regtest/regtest.sh | 1-
2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/electrum/commands.py b/electrum/commands.py @@ -661,17 +661,6 @@ class Commands: return json_normalize(wallet.get_detailed_history(**kwargs)) @command('w') - async def init_lightning(self, wallet: Abstract_Wallet = None): - """Enable lightning payments""" - wallet.init_lightning() - return "Lightning keys have been created." - - @command('w') - async def remove_lightning(self, wallet: Abstract_Wallet = None): - """Disable lightning payments""" - wallet.remove_lightning() - - @command('w') async def lightning_history(self, show_fiat=False, wallet: Abstract_Wallet = None): """ lightning history """ lightning_history = wallet.lnworker.get_history() if wallet.lnworker else [] diff --git a/electrum/tests/regtest/regtest.sh b/electrum/tests/regtest/regtest.sh @@ -76,7 +76,6 @@ if [[ $1 == "init" ]]; then rm -rf /tmp/$2/ agent="./run_electrum --regtest -D /tmp/$2" $agent create --offline > /dev/null - $agent -o init_lightning $agent setconfig --offline log_to_file True $agent setconfig --offline server 127.0.0.1:51001:t $agent setconfig --offline lightning_to_self_delay 144