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

Chore: Refactor_wallet_manager #1667

Merged
merged 21 commits into from
Jun 20, 2022

Conversation

k9ert
Copy link
Contributor

@k9ert k9ert commented Apr 12, 2022

This is a preparation of making the WalletManager aware of the active node via a session-attribute.

relates to #1661

@netlify
Copy link

netlify bot commented Apr 12, 2022

Deploy Preview for specter-desktop-docs ready!

Name Link
🔨 Latest commit b0f112d
🔍 Latest deploy log https://app.netlify.com/sites/specter-desktop-docs/deploys/62af2d806a0211000854af49
😎 Deploy Preview https://deploy-preview-1667--specter-desktop-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@k9ert k9ert added the wip label Apr 27, 2022
@k9ert
Copy link
Contributor Author

k9ert commented May 4, 2022

The experimental session-feature used in the spec_multiuser_sessions.js from cypress doesn't seem to work for us. I've created:
cypress-io/cypress#21138

@k9ert k9ert requested a review from moneymanolis May 18, 2022 12:48
@k9ert
Copy link
Contributor Author

k9ert commented May 18, 2022

This is ready for review. I'd like to get this in part by part. I could continue here but i think it's better to merge it as is.

@k9ert k9ert marked this pull request as ready for review May 25, 2022 16:23
describe('Test the actions in UTXO list', () => {
// See https://github.com/cypress-io/cypress/issues/21138
if (Cypress.env("CI")) {
const login = (name,password) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps I am overlooking sth. but where is the name variable set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's defining a function and the name is the parameter here. It's initialized with the arguments at call time, e.g. in line 39.

@djpnewton
Copy link
Contributor

So this does not yet make the wallet manager session aware? It is just refactoring to use less instance variables such that when the wallet manager is session aware things like the wallets_update_list dict will not contain wallets from multiple different sessions?

@k9ert
Copy link
Contributor Author

k9ert commented Jun 2, 2022

So this does not yet make the wallet manager session aware?
No. It's also not planned to make it session-aware.

It is just refactoring to use less instance variables such that when the wallet manager is
session aware things like the wallets_update_list dict will not contain wallets from multiple different sessions?

This was just a side_effect of that change. The main point from my point of view is that the WalletManager no longer throws away all it's data when the Node gets changed. This is a prerequisite to requesting data from an instance which is session-aware.

@k9ert k9ert removed the wip label Jun 20, 2022
@k9ert k9ert merged commit 59e4e0b into cryptoadvance:master Jun 20, 2022
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.

3 participants