Skip to content
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

feat: my address && slide to unlock && update resource files #220

Merged
merged 2 commits into from
Dec 26, 2024

Conversation

Lu1zz
Copy link
Contributor

@Lu1zz Lu1zz commented Dec 26, 2024

Summary by CodeRabbit

  • 新功能

    • 添加了新的模块 trezor.lvglui.scrs.address,扩展了地址处理能力。
    • 引入了会话管理功能,新增方法 get_session_id(),可外部访问当前会话 ID。
  • 改进

    • 增强了会话管理,添加了全局变量 _SESSION_ID,并更新了会话开始和结束的逻辑。

@Lu1zz Lu1zz requested a review from a team as a code owner December 26, 2024 07:31
Copy link

coderabbitai bot commented Dec 26, 2024

概述

代码变更概览

代码库变更解析

工作流程

本次代码变更主要涉及两个文件:core/src/all_modules.pycore/src/storage/cache.py。变更包括在 all_modules.py 中添加新的模块导入,以及在 cache.py 中增强会话管理功能,引入了新的会话ID处理机制。

变更详情
文件路径 变更摘要
core/src/all_modules.py 新增 trezor.lvglui.scrs.address 模块导入
core/src/storage/cache.py 新增全局变量 _SESSION_ID,引入 get_session_id() 方法,优化会话管理逻辑
序列图
sequenceDiagram
    participant Module as 模块
    participant Cache as 缓存管理器
    participant Session as 会话管理

    Module->>Cache: 启动会话
    Cache->>Session: 请求新会话ID
    Session-->>Cache: 返回会话ID
    Cache->>Cache: 存储会话ID
    Cache-->>Module: 会话已启动
Loading

技术细节

  1. all_modules.py 中新增模块导入,扩展了系统的模块集合。
  2. cache.py 中引入会话ID管理机制:
    • 新增 _SESSION_ID 全局变量
    • 实现 get_session_id() 方法
    • 优化会话开始和结束的处理逻辑

这些变更旨在提升系统的模块化和会话管理能力,为未来的功能扩展奠定基础。

Tip

CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command @coderabbitai generate docstrings to have CodeRabbit automatically generate docstrings for your pull request. We would love to hear your feedback on Discord.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary or Summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@Lu1zz Lu1zz requested a review from somebodyLi December 26, 2024 07:33
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4fea5bd and a6cb6c7.

⛔ Files ignored due to path filters (298)
  • core/src/trezor/lvglui/assets/addr/btc-btc-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/btn-doubledown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/btn-doubleup.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-ada-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-alephium-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-algo-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-apt-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-atom-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-cfx-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-dot-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-fil-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-kaspa-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-near-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-nervos-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-nexa-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-nostr-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-scdo-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-sol-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-sui-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-ton-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-tron-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-xrp-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-arb1-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-avax-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-bnb-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-eth-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-matic-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/point.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-acm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-axe.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-bch.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btcp.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btx.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-crown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-crw.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-dash.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-dcr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-dgb.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-doge.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-firo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-fjc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ftc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-grs.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-kmd.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-koto.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ltc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-mona.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-mue.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-nmc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-part.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ppc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ptd.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-qtum.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-regtest.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-rito.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-rvn.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-smart.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-sys.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tbch.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tbtg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tdash.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tdcr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-test.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tfiro.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tgrs.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tltc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tpart.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tppc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tqtum.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-trc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-trvn.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tsmart.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-uno.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-via.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-viacoin.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-vips.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-vtc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xna.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xpm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xrc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xvg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-zcr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-zec.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-arb1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-arbitrum_nova.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-aurora.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-avax.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-base.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-bnb.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-boba.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-celo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-cro.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-etc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-eth.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-filecoin.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-ftm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-ht.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-kava.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-klay.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-linea.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-matic.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-mixin.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-mnt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-oeth.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-okc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-okt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-one.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-teth.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-xdai.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-zksync-era.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-ada.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-algo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-apt-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-apt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-astar.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-atom.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-cfx.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-dot.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-eos.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-etc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-fil.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-joystream.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-kaspa.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-kusama.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-manta.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-near.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-nervos.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-nexa.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-nostr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-scdo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-sol.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-stacks.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-stc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-sui.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-ton.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-tron.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-westend.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xem.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xlm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xmr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xrp.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xtz.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/about.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/add-account.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/add.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-danger.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-error-red-outline.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-error-red-solid.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-warning-yellow-outline.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-warning-yellow-solid.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-warning.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-down.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left-1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left-2.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left-gray.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-right-1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-right-2.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-right.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-up.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banned.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-blue.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-gray.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-red.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-yellow.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/ble-connected.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/ble-disabled.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/ble-enabled.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/branches.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-del-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-del.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-double-down.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-doubledown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-doubleup.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-eye.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-light-off.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-light-on.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/camera-bg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/charging-bg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/charging-fg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/charging.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/check-seed.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-green-1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-solid.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/close.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/connect-wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/connect.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/crypto.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/danger.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/developer.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/dotmap-back.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/dotmap-front.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/down-home.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/download-qrcode.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fcc-logo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/feedback-correct.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/feedback-incorrect.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/finger-start-arrow.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/finger-start-full.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/finger-start.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-0.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-100.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-12.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-25.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-37.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-50.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-62.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-75.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-87.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-prompt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/general.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-amount.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-data.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-directions.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-fees.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-more.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/hardware-wallet-works-way.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/hidden-wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/homescreen.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/language.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/left-delete.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/lock.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/logo-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/logo-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nav-back.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nav-close.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nav-more.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-bg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-icon-searching.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-icon-transfering.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-start.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/notice.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/onekey-help.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/pin-protection.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/point.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/power-on-off.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/poweroff.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/protection.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/recovery-phrase.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/recovery.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/security-check.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/security.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/settings-fingerprint.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/settings-plus.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-black.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-disable.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-done-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-done-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-down.jpg is excluded by !**/*.jpg
  • core/src/trezor/lvglui/assets/prompt/slide-down.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slider-done-black.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/success.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/sweep-up.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/unknown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/unlock.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/up-home.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/update-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/upload-res.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/usb.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/warning-bar.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/warning.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-10-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-10-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-100-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-100-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-15-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-15-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-20-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-20-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-25-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-25-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-30-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-30-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-35-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-35-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-40-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-40-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-45-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-45-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-5-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-5-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-50-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-50-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-55-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-55-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-60-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-60-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-65-green.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • core/src/all_modules.py (1 hunks)
  • core/src/storage/cache.py (3 hunks)
🔇 Additional comments (4)
core/src/storage/cache.py (3)

167-168: 初始化会话 ID 改写更清晰。
这处通过直接赋值给 _SESSION_ID,逻辑明确。后续若需区分接收的新 ID 和空字节场景,可考虑在这里加一个简单的条件判断。


217-218: 确认接收的 received_session_id 有效性。
这里对 _SESSION_ID 做了赋值操作,请确保 received_session_id 不为空且长度正确,并在调用方做好异常处理。


236-238: 提供一个简单的会话 ID 访问器。
这是一个有用的函数,能直接返回当前会话 ID。若未来需要额外安全校验,可以在这里集中处理。

core/src/all_modules.py (1)

186-187: 导入新模块 trezor.lvglui.scrs.address
这两行仅增加了模块引用,对现有逻辑影响较小;若后续确有模块功能依赖,要确保地址模块和会话管理模块间的交互一致。

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a6cb6c7 and 9c89ad1.

⛔ Files ignored due to path filters (298)
  • core/src/trezor/lvglui/assets/addr/btc-btc-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/btn-doubledown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/btn-doubleup.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-ada-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-alephium-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-algo-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-apt-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-atom-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-cfx-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-dot-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-fil-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-kaspa-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-near-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-nervos-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-nexa-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-nostr-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-scdo-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-sol-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-sui-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-ton-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-tron-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/chain-xrp-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-arb1-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-avax-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-bnb-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-eth-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/evm-matic-24.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/point.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/addr/wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-acm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-axe.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-bch.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btcp.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-btx.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-crown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-crw.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-dash.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-dcr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-dgb.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-doge.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-firo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-fjc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ftc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-grs.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-kmd.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-koto.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ltc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-mona.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-mue.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-nmc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-part.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ppc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-ptd.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-qtum.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-regtest.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-rito.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-rvn.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-smart.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-sys.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tbch.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tbtg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tdash.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tdcr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-test.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tfiro.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tgrs.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tltc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tpart.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tppc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tqtum.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-trc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-trvn.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-tsmart.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-uno.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-via.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-viacoin.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-vips.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-vtc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xna.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xpm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xrc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-xvg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-zcr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/btc/btc-zec.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-arb1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-arbitrum_nova.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-aurora.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-avax.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-base.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-bnb.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-boba.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-celo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-cro.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-etc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-eth.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-filecoin.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-ftm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-ht.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-kava.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-klay.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-linea.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-matic.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-mixin.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-mnt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-oeth.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-okc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-okt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-one.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-teth.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-xdai.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/evm/evm-zksync-era.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-ada.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-algo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-apt-48.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-apt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-astar.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-atom.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-cfx.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-dot.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-eos.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-etc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-fil.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-joystream.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-kaspa.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-kusama.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-manta.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-near.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-nervos.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-nexa.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-nostr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-scdo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-sol.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-stacks.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-stc.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-sui.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-ton.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-tron.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-westend.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xem.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xlm.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xmr.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xrp.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/chain/others/chain-xtz.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/about.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/add-account.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/add.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-danger.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-error-red-outline.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-error-red-solid.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-warning-yellow-outline.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-warning-yellow-solid.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/alert-warning.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-down.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left-1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left-2.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left-gray.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-left.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-right-1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-right-2.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-right.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/arrow-up.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banned.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-blue.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-gray.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-red.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/banner-icon-yellow.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/ble-connected.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/ble-disabled.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/ble-enabled.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/branches.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-del-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-del.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-double-down.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-doubledown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-doubleup.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-eye.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-light-off.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/btn-light-on.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/camera-bg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/charging-bg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/charging-fg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/charging.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/check-seed.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-green-1.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-solid.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/checked-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/close.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/connect-wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/connect.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/crypto.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/danger.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/developer.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/dotmap-back.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/dotmap-front.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/down-home.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/download-qrcode.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fcc-logo.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/feedback-correct.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/feedback-incorrect.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/finger-start-arrow.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/finger-start-full.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/finger-start.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-0.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-100.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-12.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-25.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-37.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-50.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-62.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-75.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-process-87.5.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint-prompt.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/fingerprint.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/general.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-amount.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-data.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-directions.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-fees.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-more.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/group-icon-wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/hardware-wallet-works-way.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/hidden-wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/homescreen.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/language.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/left-delete.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/lock.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/logo-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/logo-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nav-back.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nav-close.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nav-more.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-bg.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-icon-searching.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-icon-transfering.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/nfc-start.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/notice.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/onekey-help.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/pin-protection.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/point.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/power-on-off.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/poweroff.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/protection.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/recovery-phrase.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/recovery.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/security-check.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/security.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/settings-fingerprint.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/settings-plus.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-black.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-disable.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-arrow-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-done-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-done-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slide-down.jpg is excluded by !**/*.jpg
  • core/src/trezor/lvglui/assets/prompt/slide-down.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/slider-done-black.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/success.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/sweep-up.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/unknown.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/unlock.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/up-home.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/update-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/upload-res.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/usb.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/wallet.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/warning-bar.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/prompt/warning.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-10-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-10-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-100-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-100-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-15-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-15-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-20-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-20-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-25-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-25-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-30-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-30-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-35-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-35-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-40-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-40-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-45-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-45-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-5-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-5-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-50-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-50-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-55-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-55-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-60-green.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-60-white.png is excluded by !**/*.png
  • core/src/trezor/lvglui/assets/sys/battery/battery-65-green.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • core/src/all_modules.py (1 hunks)
  • core/src/storage/cache.py (3 hunks)
🔇 Additional comments (3)
core/src/storage/cache.py (3)

167-168: 写法直观。请确认 _SESSION_ID 是否需更严格保护,以避免在并发场景下出错。


217-218: 当 received_session_id 有值时,这里立刻写入 _SESSION_ID。请确保外部对传入的会话 ID 做了完整的合法性校验。


236-237: 提供只读形式的会话 ID。实现清晰明了。

core/src/storage/cache.py Show resolved Hide resolved
core/src/all_modules.py Show resolved Hide resolved
Signed-off-by: Lu1zz <[email protected]>
@Lu1zz Lu1zz merged commit 5bb965e into OneKeyHQ:main Dec 26, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants