Skip to content

Conversation

Galoretka
Copy link
Contributor

Remove the go w.selfDerive() invocation from Wallet.Initialize. Starting the self-derivation loop here launches a goroutine before w.deriveReq and w.deriveQuit are initialized, causing the loop to block forever on a select over nil channels. Later, Open correctly initializes the channels and starts another selfDerive, leaving the first goroutine stuck and unkillable. The self-derivation lifecycle should begin in Open only, after channels are set up. This change aligns with the USB wallet backend pattern and prevents leaked goroutines.

@Galoretka Galoretka requested a review from gballet as a code owner October 13, 2025 08:22
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