mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
on_revoke_and_ack: be robust to exceptions raised in lnwatcher
This commit is contained in:
parent
dff1822c37
commit
049857d528
1 changed files with 6 additions and 2 deletions
|
@ -473,9 +473,13 @@ class Channel(Logger):
|
|||
# if there are update_add_htlc msgs between commitment_signed and rev_ack,
|
||||
# this might break
|
||||
prev_remote_commitment = self.pending_commitment(REMOTE)
|
||||
|
||||
self.config[REMOTE].revocation_store.add_next_entry(revocation.per_commitment_secret)
|
||||
self.process_new_revocation_secret(revocation.per_commitment_secret)
|
||||
|
||||
# be robust to exceptions raised in lnwatcher
|
||||
try:
|
||||
self.process_new_revocation_secret(revocation.per_commitment_secret)
|
||||
except Exception as e:
|
||||
self.logger.info("Could not process revocation secret: {}".format(repr(e)))
|
||||
|
||||
##### start applying fee/htlc changes
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue