Skip to content

Commit

Permalink
qt: Use CanStake() in BitcoinGUI constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lateminer committed Nov 2, 2023
1 parent 2af6869 commit 7a5136b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
frameBlocksLayout->addStretch();

#ifdef ENABLE_WALLET
if (gArgs.GetBoolArg("-staking", node::DEFAULT_STAKE))
if (node::CanStake())
{
QTimer *timerStakingIcon = new QTimer(labelStakingIcon);
connect(timerStakingIcon, SIGNAL(timeout()), this, SLOT(updateStakingIcon()));
Expand Down

0 comments on commit 7a5136b

Please sign in to comment.