Skip to content

TODO: Optimize fetch_wallet_state to avoid redundant fetches #28

@shroominic

Description

@shroominic

TODO Location

sixty_nuts/wallet.py:2096

Priority

🟢 Low Priority - Performance optimization

Current Code

# Parse wallet metadata
# TODO this should not always fetch the wallet event
if wallet_event:
    try:
        decrypted = nip44_decrypt(wallet_event["content"], self._privkey)

What needs to be done

  • Cache wallet event data to avoid redundant decryption
  • Only fetch/decrypt when wallet data changes
  • Improve performance for frequent state checks

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions