1
0

Add 'has_onchain_backup' to channel storage, to fix the displayed icon.

Note that this will not fix the value for already existing channels
that have been created with onchain backup; one would need a wallet_db
upgrade in order to fix them (probably not worth the effort).
This commit is contained in:
ThomasV
2021-03-24 11:13:24 +01:00
parent ed6eea9161
commit 130842ecd4
5 changed files with 13 additions and 6 deletions

View File

@@ -553,6 +553,9 @@ class Channel(AbstractChannel):
self.should_request_force_close = False
self.force_close_detected = False # not a state, only for GUI
def has_onchain_backup(self):
return self.storage.get('has_onchain_backup', False)
def can_be_deleted(self):
return self.is_redeemed()