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

Improve errors in findWalletForRedemption function #652

Merged
merged 3 commits into from
Jul 13, 2023

Conversation

r-czajkowski
Copy link
Contributor

@r-czajkowski r-czajkowski commented Jul 12, 2023

Throw error when currently, there are no live wallets in the network and when the user requested redemption for all live wallets in the network using the same Bitcoin address - in that case, a user should use another Bitcoin address.

Throw error when currently, there are no active wallets in the network
and when the user requested redemption for all active wallets in the
network using the same Bitcoin address - in that case, a user should use
another Bitcoin address.
There is always only one "active" wallet in the system. This is the one
that accepts new deposits. What we are talking about here are "live"
wallets that are operable from the Bridge's standpoint. Here we rename
the `activeWalletsCounter` variable to `liveWalletsCounter` and adjust
the nomenclature everywherre accordingly.
@lukasz-zimnoch lukasz-zimnoch merged commit f987652 into main Jul 13, 2023
23 checks passed
@lukasz-zimnoch lukasz-zimnoch deleted the update-find-wallet-for-redemption branch July 13, 2023 07:41
@lukasz-zimnoch lukasz-zimnoch added this to the typescript/v1.3.0 milestone Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔌 typescript TypeScript library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants