From baff4fa6259372b667042dae808123bfcb0f0964 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sun, 26 Sep 2021 12:18:25 +0200 Subject: [PATCH] save_backup: do not remove deterministic LN key (see #7513) --- electrum/tests/regtest/regtest.sh | 2 ++ electrum/wallet.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/tests/regtest/regtest.sh b/electrum/tests/regtest/regtest.sh index 5b431f865..955fca3c4 100755 --- a/electrum/tests/regtest/regtest.sh +++ b/electrum/tests/regtest/regtest.sh @@ -150,7 +150,9 @@ if [[ $1 == "backup" ]]; then $alice daemon -d $alice load_wallet $alice import_channel_backup $backup + echo "request force close $channel1" $alice request_force_close $channel1 + echo "request force close $channel2" $alice request_force_close $channel2 wait_for_balance alice 0.998 fi diff --git a/electrum/wallet.py b/electrum/wallet.py index d12f73db9..081be26b4 100644 --- a/electrum/wallet.py +++ b/electrum/wallet.py @@ -322,7 +322,6 @@ class Abstract_Wallet(AddressSynchronizer, ABC): for chan_id, chan in self.lnworker.channels.items(): channel_backups[chan_id.hex()] = self.lnworker.create_channel_backup(chan_id) new_db.put('channels', None) - new_db.put('lightning_xprv', None) new_db.put('lightning_privkey2', None) new_path = os.path.join(backup_dir, self.basename() + '.backup')