commit 59f7d4b02dfc5fe92073b1f4e89de4bdb836f195 parent fcccb99a3b3f5dbefd53da02acfa578ed1c3fe08 Author: ThomasV <thomasv@electrum.org> Date: Fri, 23 Oct 2020 11:31:04 +0200 fix #6676 and remove dead code Diffstat:
M | electrum/wallet.py | | | 9 | --------- |
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/electrum/wallet.py b/electrum/wallet.py @@ -330,15 +330,6 @@ class Abstract_Wallet(AddressSynchronizer, ABC): node = BIP32Node.from_rootseed(seed, xtype='standard') ln_xprv = node.to_xprv() self.db.put('lightning_privkey2', ln_xprv) - self.save_db() - - def remove_lightning(self): - if not self.db.get('lightning_privkey2'): - return - if bool(self.lnworker.channels): - raise Exception('Error: This wallet has channels') - self.db.put('lightning_privkey2', None) - self.save_db() def stop(self): super().stop()