Automate backups:
- backup wallet file on each channel creation - on android, a backup password is entered in settings - on desktop, the backup path is in settings
This commit is contained in:
@@ -842,6 +842,7 @@ class LNWallet(LNWorker):
|
||||
with self.lock:
|
||||
self.channels[chan.channel_id] = chan
|
||||
self.lnwatcher.add_channel(chan.funding_outpoint.to_str(), chan.get_funding_address())
|
||||
self.wallet.save_backup()
|
||||
|
||||
@log_exceptions
|
||||
async def add_peer(self, connect_str: str) -> Peer:
|
||||
|
||||
Reference in New Issue
Block a user