From 99c04b5e837b8da438ca807e6e78b4485d59ae5c Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 3 Apr 2024 15:07:41 +0200 Subject: [PATCH] Remove unnecessary channel state --- core/src/trezor/wire/thp/__init__.py | 17 ++++++++--------- core/src/trezor/wire/thp/channel.py | 2 -- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/core/src/trezor/wire/thp/__init__.py b/core/src/trezor/wire/thp/__init__.py index 523c92114..9538dc0af 100644 --- a/core/src/trezor/wire/thp/__init__.py +++ b/core/src/trezor/wire/thp/__init__.py @@ -8,15 +8,14 @@ else: class ChannelState(IntEnum): UNALLOCATED = 0 - UNAUTHENTICATED = 1 - TH1 = 2 - TH2 = 3 - TP1 = 4 - TP2 = 5 - TP3 = 6 - TP4 = 7 - TP5 = 8 - ENCRYPTED_TRANSPORT = 9 + TH1 = 1 + TH2 = 2 + TP1 = 3 + TP2 = 4 + TP3 = 5 + TP4 = 6 + TP5 = 7 + ENCRYPTED_TRANSPORT = 8 class SessionState(IntEnum): diff --git a/core/src/trezor/wire/thp/channel.py b/core/src/trezor/wire/thp/channel.py index a56185bea..be618418f 100644 --- a/core/src/trezor/wire/thp/channel.py +++ b/core/src/trezor/wire/thp/channel.py @@ -597,8 +597,6 @@ def _state_to_str(state: int) -> str: return "state: tp5" elif state == ChannelState.UNALLOCATED: return "state: unallocated" - elif state == ChannelState.UNAUTHENTICATED: - return "state: unauthenticated" else: return "state: "