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

[Wallet] Clean wrong pwalletMain inside wallet class. #1495

Merged

Conversation

furszy
Copy link

@furszy furszy commented Apr 4, 2020

Essentially wallet.cpp, crypter.cpp and wallet_zerocoin.cpp were wrongly using/calling pwalletMain when those files are actually THE WALLET.

This was blocking the CWallet object usage in unit test as the wallet (or any other wallet created that it's not pwalletMain) would be calling a pointer that could or couldn't exist when it should just call an internal method.

@furszy furszy self-assigned this Apr 4, 2020
Copy link

@random-zebra random-zebra left a comment

Choose a reason for hiding this comment

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

Big ACK a1819b5 here.
Good stuff 👍

Copy link
Collaborator

@Fuzzbawls Fuzzbawls left a comment

Choose a reason for hiding this comment

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

Nice one!

ACK a1819b5

@furszy furszy merged commit caa91b0 into PIVX-Project:master Apr 5, 2020
@furszy furszy deleted the 2020_cleanup_pwalletMain_in_wallet branch November 29, 2022 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants