Skip to content

Jon/fix/zano private view key await #960

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

Merged
merged 2 commits into from
Jul 18, 2025

Conversation

Jon-edge
Copy link
Contributor

@Jon-edge Jon-edge commented Jul 14, 2025

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from 44660e4 to bee0726 Compare July 17, 2025 05:29
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from bee0726 to b362e3a Compare July 17, 2025 05:38
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from b362e3a to cf54a4b Compare July 17, 2025 05:46
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from cf54a4b to 50303fb Compare July 17, 2025 06:04
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from 50303fb to a81130c Compare July 17, 2025 06:15
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from a81130c to 74463fa Compare July 17, 2025 06:23
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from 74463fa to ff0324c Compare July 17, 2025 17:13
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch 2 times, most recently from 711ef0d to 05880a9 Compare July 17, 2025 17:29
cursor[bot]

This comment was marked as outdated.

@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from 05880a9 to db795b7 Compare July 17, 2025 18:07
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

I'll go ahead and rebase this branch with my own fixes, rather than leaving a more-detailed review. I know you are swamped with other tasks.

@swansontec swansontec force-pushed the jon/fix/zano-private-view-key-await branch 2 times, most recently from 24e5eb8 to 62f3924 Compare July 17, 2025 22:57
cursor[bot]

This comment was marked as outdated.

@swansontec
Copy link
Contributor

Bug: Initialization Deadlock and Error Handling Issue

A deadlock occurs in the syncNetwork method during wallet initialization.

This deadlock doesn't actually occur, since many methods can trigger the initial onStart, but there can be a slight unnecessary delay in some cases. Added a fixup to address the delay.

cursor[bot]

This comment was marked as outdated.

@swansontec
Copy link
Contributor

Bug: Optional Chaining Removed Causing Errors

The optional chaining operator was removed from opts?.privateKeys to opts.privateKeys in the syncNetwork method.

Not a bug. The contract with the core says the keys will be present. Otherwise, it is a genuine error.

Jon-edge added 2 commits July 17, 2025 17:34
- Manages resources that need to start/stop at random times
- Prevents multiple instances running simultaneously
- Handles state transitions: stopped → starting → started → stopping
- Provides error handling and cleanup on failures
- Generic utility that could be useful for other engines
- Replace direct zanoWalletId tracking with LifecycleManager pattern
- Add ALREADY_EXISTS error handling for wallet reinitialization
- Fix getDisplayPublicSeed to wait for wallet initialization
- Improve error logging and recovery for existing wallets
- Use getOpenedWallets() to find existing wallet by storage path
@Jon-edge Jon-edge force-pushed the jon/fix/zano-private-view-key-await branch from 95428c0 to aa589cf Compare July 18, 2025 00:35
@Jon-edge Jon-edge enabled auto-merge July 18, 2025 00:37
@Jon-edge Jon-edge requested a review from swansontec July 18, 2025 01:07
@Jon-edge Jon-edge merged commit cf3a216 into master Jul 18, 2025
3 checks passed
@Jon-edge Jon-edge deleted the jon/fix/zano-private-view-key-await branch July 18, 2025 17:57
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.

2 participants