mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 05:32:39 +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
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import storage.cache_codec as cache_codec
|
|
||||||
import storage.device as storage_device
|
import storage.device as storage_device
|
||||||
from storage.cache import check_thp_is_not_used
|
from storage.cache import check_thp_is_not_used
|
||||||
from storage.cache_common import APP_COMMON_BUSY_DEADLINE_MS, APP_COMMON_SEED
|
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(
|
async def handle_Initialize(
|
||||||
msg: Initialize,
|
msg: Initialize,
|
||||||
) -> Features:
|
) -> Features:
|
||||||
|
import storage.cache_codec as cache_codec
|
||||||
|
|
||||||
session_id = cache_codec.start_session(msg.session_id)
|
session_id = cache_codec.start_session(msg.session_id)
|
||||||
|
|
||||||
# TODO change cardano derivation
|
# TODO change cardano derivation
|
||||||
@ -269,10 +270,11 @@ async def handle_SetBusy(msg: SetBusy) -> Success:
|
|||||||
return Success()
|
return Success()
|
||||||
|
|
||||||
|
|
||||||
|
@check_thp_is_not_used
|
||||||
async def handle_EndSession(msg: EndSession) -> Success:
|
async def handle_EndSession(msg: EndSession) -> Success:
|
||||||
cache_codec.end_current_session()
|
from storage.cache_codec import end_current_session
|
||||||
return Success()
|
|
||||||
|
|
||||||
|
end_current_session()
|
||||||
|
|
||||||
async def handle_Ping(msg: Ping) -> Success:
|
async def handle_Ping(msg: Ping) -> Success:
|
||||||
if msg.button_protection:
|
if msg.button_protection:
|
||||||
|
Loading…
Reference in New Issue
Block a user