electrum

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

commit 937d8a1f0f14a36bf34d993e2e85f92a2626c599
parent b55f6430f24c374c3c50616e53adfc298106a243
Author: ThomasV <thomasv@electrum.org>
Date:   Fri, 19 Jun 2020 17:41:51 +0200

fix #6243

Diffstat:
Melectrum/lnworker.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrum/lnworker.py b/electrum/lnworker.py @@ -1470,9 +1470,9 @@ class LNBackups(Logger): decrypted = pw_decode_with_version_and_mac(encrypted, xpub) cb_storage = ChannelBackupStorage.from_bytes(decrypted) channel_id = cb_storage.channel_id().hex() - d = self.db.get_dict("channel_backups") - if channel_id in d: + if channel_id in self.db.get_dict("channels"): raise Exception('Channel already in wallet') + d = self.db.get_dict("channel_backups") d[channel_id] = cb_storage self.channel_backups[bfh(channel_id)] = cb = ChannelBackup(cb_storage, sweep_address=self.sweep_address, lnworker=self) self.wallet.save_db()