mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 11:39:03 +00:00
bitcoin: simplify if expression
This commit is contained in:
parent
8aeec95bae
commit
64a218eea0
@ -219,7 +219,7 @@ def validate_full_path(
|
||||
|
||||
if path[1] > 20 and path[1] != coin.slip44 | HARDENED:
|
||||
return False
|
||||
if (path[2] > 20 and path[2] < HARDENED) or path[2] > 20 | HARDENED:
|
||||
if (20 < path[2] < HARDENED) or path[2] > 20 | HARDENED:
|
||||
return False
|
||||
if path[3] not in (0, 1, 0 | HARDENED, 1 | HARDENED, 2 | HARDENED):
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user