-
-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Abstraction of cache and context #4357
base: main
Are you sure you want to change the base?
Conversation
|
|
dbaba59
to
9400f19
Compare
[no changelog]
545adf2
to
48f58b0
Compare
addd607
to
3411ee1
Compare
[no changelog]
[no changelog]
3411ee1
to
f51e6dc
Compare
@@ -557,6 +557,7 @@ if FROZEN: | |||
)) | |||
|
|||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/*.py')) | |||
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/codec/*.py')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The codec specific files are separated so that they can be easily ommited for THP prod builds. When the THP implementation is added, it could look like this:
if THP:
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/thp/*.py'))
if not THP or PYOPT == '0':
SOURCE_PY.extend(Glob(SOURCE_PY_DIR + 'trezor/wire/codec/*.py'))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: The condition or PYOPT == '0'
is in the snippet because the codec will be used on DebugLink
even with THP builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will continue tomorrow
…wnClass [no changelog]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filter = Callable[[int, Handler], Handler] | ||
|
||
# If set to False protobuf messages marked with "experimental_message" option are rejected. | ||
EXPERIMENTAL_ENABLED = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: shouldn't this also be somewhere under storage/cache
to avoid being wiped by a restart?
[no changelog]
Abstraction of cache and context so that the current codec_v1 implementation can be switched for THP version.