Skip to content

Commit

Permalink
conditional fix for specific linux wallet crash
Browse files Browse the repository at this point in the history
conditional fix for specific linux wallet crash, see issue 8:
#8
  • Loading branch information
zettel-kasten committed Jun 22, 2018
1 parent 3477b4d commit 1e13de2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qt/miningpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ void MiningPage::restartMining(bool fGenerate)
mapArgs["-genproclimit"] = QString("%1").arg(nThreads).toUtf8().data();

// unlock wallet before mining

#ifndef __linux__
if (fGenerate && !hasMiningprivkey && !unlockContext.get())
{
this->unlockContext.reset(new WalletModel::UnlockContext(model->requestUnlock()));
Expand All @@ -89,6 +91,7 @@ void MiningPage::restartMining(bool fGenerate)
return;
}
}
#endif

json_spirit::Array Args;
Args.push_back(fGenerate);
Expand Down

0 comments on commit 1e13de2

Please sign in to comment.