mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-21 04:41:18 +00:00
fix(core): remove direct import of cache_codec in base.py
[no changelog]
This commit is contained in:
parent
bfee79ef62
commit
7f1a526625
@ -1,6 +1,5 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import storage.cache_codec as cache_codec
|
||||
import storage.device as storage_device
|
||||
from storage.cache import check_thp_is_not_used
|
||||
from storage.cache_common import APP_COMMON_BUSY_DEADLINE_MS, APP_COMMON_SEED
|
||||
@ -210,6 +209,8 @@ def get_features() -> Features:
|
||||
async def handle_Initialize(
|
||||
msg: Initialize,
|
||||
) -> Features:
|
||||
import storage.cache_codec as cache_codec
|
||||
|
||||
session_id = cache_codec.start_session(msg.session_id)
|
||||
|
||||
# TODO change cardano derivation
|
||||
@ -269,10 +270,11 @@ async def handle_SetBusy(msg: SetBusy) -> Success:
|
||||
return Success()
|
||||
|
||||
|
||||
@check_thp_is_not_used
|
||||
async def handle_EndSession(msg: EndSession) -> Success:
|
||||
cache_codec.end_current_session()
|
||||
return Success()
|
||||
from storage.cache_codec import end_current_session
|
||||
|
||||
end_current_session()
|
||||
|
||||
async def handle_Ping(msg: Ping) -> Success:
|
||||
if msg.button_protection:
|
||||
|
Loading…
Reference in New Issue
Block a user