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

core: Make wallet connection synchronous #2801

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

martonp
Copy link
Contributor

@martonp martonp commented Jun 7, 2024

Two wallet connections running in parallel was causing a panic.

There were parallel calls to xcWallet.Connect happening in core.refundExpiredBonds and core.connectWallets. The second connect was timing out, causing the panic in #2793.

Resolves: #2793

Two wallet connections running in parallel was causing a panic.
Copy link
Contributor

@ukane-philemon ukane-philemon left a comment

Choose a reason for hiding this comment

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

Looks straight-forward.

Copy link
Member

@buck54321 buck54321 left a comment

Choose a reason for hiding this comment

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

Do we know what was happening in #2793 to bring this out?

@martonp
Copy link
Contributor Author

martonp commented Jun 16, 2024

Do we know what was happening in #2793 to bring this out?

During the second connection call, this line was erroring:

w.cl, err = w.wallet.Start()

This caused w.cl to be set to nil.

@buck54321 buck54321 merged commit a20c75e into decred:master Jul 15, 2024
5 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.

BTC wallet panic
4 participants