Skip to content

Commit

Permalink
chore(core): close all workflows when channel is replaced
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
M1nd3r committed Feb 26, 2025
1 parent 6d26522 commit a23f425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/trezor/wire/thp/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ def replace_old_channels_with_the_same_host_pubkey(self) -> None:
required_state=ChannelState.ENCRYPTED_TRANSPORT,
required_key=CHANNEL_HOST_STATIC_PUBKEY,
)
if was_any_replaced:
# In case a channel was replaced, close all running workflows
workflow.close_others()
log.debug(__name__, "Was any channel replaced? %s", str(was_any_replaced))

def is_channel_to_replace(self) -> bool:
Expand Down

0 comments on commit a23f425

Please sign in to comment.