Remove unnecessary channel state

M1nd3r/thp2
M1nd3r 3 months ago
parent 811baca0f2
commit 99c04b5e83

@ -8,15 +8,14 @@ else:
class ChannelState(IntEnum): class ChannelState(IntEnum):
UNALLOCATED = 0 UNALLOCATED = 0
UNAUTHENTICATED = 1 TH1 = 1
TH1 = 2 TH2 = 2
TH2 = 3 TP1 = 3
TP1 = 4 TP2 = 4
TP2 = 5 TP3 = 5
TP3 = 6 TP4 = 6
TP4 = 7 TP5 = 7
TP5 = 8 ENCRYPTED_TRANSPORT = 8
ENCRYPTED_TRANSPORT = 9
class SessionState(IntEnum): class SessionState(IntEnum):

@ -597,8 +597,6 @@ def _state_to_str(state: int) -> str:
return "state: tp5" return "state: tp5"
elif state == ChannelState.UNALLOCATED: elif state == ChannelState.UNALLOCATED:
return "state: unallocated" return "state: unallocated"
elif state == ChannelState.UNAUTHENTICATED:
return "state: unauthenticated"
else: else:
return "state: <not implemented>" return "state: <not implemented>"

Loading…
Cancel
Save