From 7a5136b307d29056509ddb837b1ec5f3999a5103 Mon Sep 17 00:00:00 2001 From: lateminer <9951982+lateminer@users.noreply.github.com> Date: Fri, 3 Nov 2023 00:19:38 +0100 Subject: [PATCH] qt: Use CanStake() in BitcoinGUI constructor --- src/qt/bitcoingui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 754b41eb16..6a09b79902 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -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()));