1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-05-08 18:08:46 +00:00

fix(core): don't handle nostr-related messages in BTC-only firmware

[no changelog]
This commit is contained in:
Roman Zeyde 2025-03-27 11:44:29 +02:00 committed by Roman Zeyde
parent 63a17ea0f9
commit aecaf306f3

View File

@ -106,6 +106,7 @@ def _find_message_handler_module(msg_type: int) -> str:
if msg_type == MessageType.GetFirmwareHash: if msg_type == MessageType.GetFirmwareHash:
return "apps.misc.get_firmware_hash" return "apps.misc.get_firmware_hash"
if not utils.BITCOIN_ONLY:
# When promoting the Nostr app to production-level # When promoting the Nostr app to production-level
# and removing the "if" guard don't forget to also remove # and removing the "if" guard don't forget to also remove
# the corresponding guards (PYOPT == '0') in Sconscript.* # the corresponding guards (PYOPT == '0') in Sconscript.*
@ -116,7 +117,6 @@ def _find_message_handler_module(msg_type: int) -> str:
if msg_type == MessageType.NostrSignEvent: if msg_type == MessageType.NostrSignEvent:
return "apps.nostr.sign_event" return "apps.nostr.sign_event"
if not utils.BITCOIN_ONLY:
if msg_type == MessageType.SetU2FCounter: if msg_type == MessageType.SetU2FCounter:
return "apps.management.set_u2f_counter" return "apps.management.set_u2f_counter"
if msg_type == MessageType.GetNextU2FCounter: if msg_type == MessageType.GetNextU2FCounter: