diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index 1fb3da984..3e844a066 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -188,6 +188,7 @@ unsigned long long WalletFrame::updateWeight() WalletView *walletView = currentWalletView(); if (walletView) return walletView->updateWeight(); + return 0; } void WalletFrame::usedSendingAddresses() diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 0f964045a..637858ba9 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -680,15 +680,15 @@ bool WalletModel::saveReceiveRequest(const std::string &sAddress, const int64_t unsigned long long WalletModel::updateWeight() { if (!wallet) - return; + return 0; TRY_LOCK(cs_main, lockMain); if (!lockMain) - return; + return 0; TRY_LOCK(wallet->cs_wallet, lockWallet); if (!lockWallet) - return; + return 0; return wallet->GetStakeWeight(); } diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp index 000edcc25..b5e810cf4 100644 --- a/src/qt/walletview.cpp +++ b/src/qt/walletview.cpp @@ -286,6 +286,7 @@ unsigned long long WalletView::updateWeight() { if(walletModel) return walletModel->updateWeight(); + return 0; } void WalletView::usedSendingAddresses()