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

Fix SplashScreen crash when run with -disablewallet #102

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented Oct 9, 2020

This PR fixes the bug introduced in bitcoin/bitcoin#19099:

$ src/qt/bitcoin-qt -disablewallet
bitcoin-qt: interfaces/node.cpp:236: auto interfaces::(anonymous namespace)::NodeImpl::walletClient()::(anonymous class)::operator()() const: Assertion `"m_context->wallet_client" && check' failed.
Aborted (core dumped)

@hebasto
Copy link
Member Author

hebasto commented Oct 9, 2020

cc @ryanofsky @MarcoFalke

@hebasto hebasto changed the title gui: Fix SplashScreen crash when run with -disablewallet Fix SplashScreen crash when run with -disablewallet Oct 9, 2020
Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

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

ACK c056064.

@Sjors
Copy link
Member

Sjors commented Oct 13, 2020

tACK c056064

@maflcko maflcko merged commit ec0453c into bitcoin-core:master Oct 13, 2020
@hebasto hebasto deleted the 201009-splash branch October 13, 2020 13:11
apoelstra added a commit to apoelstra/elements that referenced this pull request Dec 3, 2020
stevenroose pushed a commit to ElementsProject/elements that referenced this pull request Mar 22, 2021
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Sep 19, 2021
Summary:
bitcoin/bitcoin@e4f4350
> Add WalletClient interface so node interface is cleaner and don't need
> wallet-specific methods.
>
> The new NodeContext::wallet_client pointer will also be needed to eliminate
> global wallet variables like ::vpwallets, because createWallet(), loadWallet(),
> getWallets(), etc methods called by the GUI need a way to get a reference to
> the list of open wallets if it is no longer a global variable.
>
> Also tweaks splash screen registration for load wallet events to be delayed
> until after wallet client is created.

bitcoin-core/gui@c056064
> gui: Fix SplashScreen crash when run with -disablewallet

This is a backport of [[bitcoin/bitcoin#19099 | core#19099]] [2/3] and [[bitcoin-core/gui#102 | core-gui#102]] (small bugfix)

Depends on D10141

Test Plan:
`ninja all check-all`

Test for bugfix core-gui#102: `src/qt/bitcoin-qt -disablewallet`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Klakurka, boardgamesaz, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10142
@bitcoin-core bitcoin-core locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants