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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user